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|
|Ans. Encapsulation facilitates security by hiding data and logic whereas Abstraction simplifies organization of data and related logic.|
As applications scale, both concepts are required for easy management and maintenance. Encapsulation for security and criss cross communication between objects / modules will make it vulnerable. and Abstraction for better organization that enables better understanding of application code and easy maintainability.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  oops  oops features  oops concepts|
|What are the difference between composition and inheritance in Java?|
| Explain OOPs |
Explain OOPs Principles
Explain OOPs Concepts
Explain OOPs features
Tell me something about OOPs
|What is the difference between Encapsulation and Abstraction?|
|What are points to consider in terms of access modifier when we are overriding any method?|
|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 Overloading and Overriding ?|
|Difference between Composition and Inheritance ?|
|How compiler handles the exceptions in overriding ?|