Java Question Bank 1
1. Explain the concept of Object oriented programming paradigm. Point out different features of OOP. Elaborate the benefit and application of OOP.
2. Explain Encapsulation with program example.
3. Elaborate the concept of Data abstraction.
4. What is inheritance? Explain different types of Inheritance with example.
5. What is Polymorphism?
6. What is JVM ? Elaborate JVM Architecture. Point out the comparative analysis of JVM, JRE and JDK.
7. Why is Java Platform independent?
8. Write a program in Java to take users name, Mobile number and average marks as input and display it on the screen.
9. Explain the difference between continue and break statement with proper example.
10. What is a constructor? Explain how does a constructor works. Point out different types of constructor with example and elaboration.
11. Explain the use of static keyword with proper example and elaboration.
12. What is an exception ? Why an exception occurs? Elaborate the concept of exception handling. Point out the benefits of exception handling.
13. Explain the difference between error and exception.
14. Elaborate different types of exception.
15. What is a thread ? Explain different states of a thread.
16. Give the comparative analysis for Multitasking vs Multithreading vs Multiprocessing vs parallel processing.
17. Write short notes on inter thread communication.
18. Write a program in Java to illustrate the concept of handling an exception using Try catch mechanism.
19. Explain the concept of finally block.
20. Why do we need an abstract class? Why we cannot create an object for abstract class?
21. What is a method? Write a method in java to take users name , branch and address as input and display it on the screen.
22. What is method overloading ? Support your answers with proper example.
23. Explain the difference between static and dynamic binding.
24. Explain the difference between data hiding and abstraction.
25. What is a package in Java ? Elaborate the advantages of using a package in java. Explain different types of packages used in java.