OOPS and Core Java Interview Question and Answers

9. What is an abstract class?
  Abstract class defines an abstract concept which cannot be instantiated and comparing to interface it can have some implementation while interface cannot.
 
Your Name Your Email-ID
Your Answer
10. What is encapsulation?
  The wrapping of data and functions into a single unit (called class) is known as encapsulation. Access to the code and data inside the wrapper is tightly controlled through a well defined interface.
 
Your Name Your Email-ID
Your Answer
11. What is inheritance?
  Inheritance is the process by which objects of one class acquire the properties of objects of another class. It supports the concept of hierarchical classification.
 
Your Name Your Email-ID
Your Answer
12. What is polymorphism?
 
  • Polymorphism is another important OOP concept.
  • Polymorphism means the ability to take more than one form.
  • By providing the interface keyword, Java allows you to fully utilize the one interface, multiple methods aspect of polymorphism.
 
Your Name Your Email-ID
Your Answer
12345678910 Page 3 of 10