Professional Documents
Culture Documents
Placement 2020-21
Interview Questions on Java (Part II)
Java Methods
1. What is the importance of main method in Java?
Java class
1. Differentiate between class and object with practical example.
5. What is inner and nested class? How to access members of these classes?
7. How would you prevent a client from directly instantiating your concrete classes?
9. What is heap? Explain the process of allocation and de-allocation of space in heap.
12. How would you make a copy of an entire Java object with its state?
Polymorphism
1. Differentiate between method overloading and method overriding.
Page 2
3. Can you override private or static method in Java?
Page 3