What are Encapsulation, Polymorphism and Inheritance?
Answer Posted / mohankumar
Encapsulation is also known as information hiding,it is to
protect data from the client using the classes but still
allowing the client to access the data,but do not modifying it.
Polymorphism ability to perform differently on different forms.
Inheritance means one base class derived from one or more
classes.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is an i/o filter?
How to write custom exception in java?
What is a function easy definition?
Can we use switch statement with strings?
Why char array is preferred over string for storing password?
Explain the difference between hashmap and hashtable in java?
What are parameters in a method?
What are the various access specifiers in java?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
How do you define a set in java?
What is an iterator java?
What is the destroy method?
Does java linked list allow duplicates?
What invokes a thread's run() method in java programming?
How infinite loop is declared?