Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Very Frequently asked to fresh graduates and less experienced. Favorite question in Walk in drives. Frequently asked in Indian Services companies.|
|Ans. Overloading - Similar Signature but different definition , like function overloading. |
Overriding - Overriding the Definition of base class in the derived class.
Sample Code for overloading
Sample Code for overriding
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   oops   overloading   overriding   oops concepts   basic interview question Asked in 83 Companies basic   frequent|
Try 1 Question(s) Test
|What are the difference between composition and inheritance in Java?|
|What are points to consider in terms of access modifier when we are overriding any method?|
|What is the difference between Encapsulation and Abstraction?|
| Explain OOPs |
Explain OOPs Principles
Explain OOPs Concepts
Explain OOPs features
Tell me something about OOPs
|What is Polymorphism in Java ?|
|Why every object constructor automatically call super() in Object before its own constructors?|
|Can you give a real world example of Encapsulation and Abstraction ?|
|Difference between Composition and Inheritance ?|
|How compiler handles the exceptions in overriding ?|