Java Programming Question Bank
Java Programming Question Bank
1. What is Java?
2. What are the features of Java?
3. What is JVM?
4. What is the difference between a class and an object?
5. What is object-oriented programming?
6. What are the four principles of OOP?
7. What is inheritance?
8. What is encapsulation?
9. What is polymorphism?
10. What is abstraction?
11. What are access modifiers?
12. What is a constructor?
13. What are the different types of variables in Java?
14. What is an array?
15. What are control structures in Java?
16. What is exception handling?
17. What are the different types of exceptions in Java?
18. What is the difference between an abstract class and an interface in Java?
19. Provide an example of Polymorphism.
20. What is the difference between a private and a protected method in Java?
21. How do you implement a bubble sort algorithm in Java?
22. What is the difference between a while loop and a do-while loop in Java?
23. What is a thread in Java? Provide an example of how to create a thread.
24. What is the difference between a static and non-static variable in Java?
25. What is an interface in Java? Provide an example.
UNIT--1
UNIT-2
(i) How to access a package and also write the uses of creating a package?
(j) Explain how to create built in exceptions with example program?
(k) What is an Interface?
(l) Explain about Method Overriding?
(m) What is an abstract class
(n) Explain Constructor Overloading with an example program?
(o) Define Inheritance and explain different types of Inheritances with example programs ?
(p) Explain steps for creating a package?
UNIT-3
UNIT—4
UNIT—5