What are Encapsulation, Polymorphism and Inheritance?

Answer Posted / janet

Encapsulation is the mechanism that binds together
code and data it manipulates and keeps both safe from
outside interface and misuse.
Inheritence is the process by which one object
acquires the properties of another object.
polymorphism is the feature that allows one
interface to be used for general class actions.

Is This Answer Correct ?    53 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between stream and buffer?

521


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

546


What are data structures in java?

535


Which are different kinds of source code?

662


What is the difference between sleep and wait in java?

516






What is the default size of load factor in hashing based collection?

568


What are the types of sockets in java?

546


What do you mean by aggregation?

571


What are the differences between stringbuffer and stringbuilder?

544


what are the states associated in the thread? : Java thread

594


What are loops in java? What are three types of loops?

552


What is getkey () in java?

581


Is intellij better than eclipse?

546


What is the meaning of immutable regarding string?

524


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

616