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


Please Help Members By Posting Answers For Below Questions

Is null == null in java?

852


What is the difference between reader/writer and inputstream/output stream?

769


What are scriptlets?

825


Which number is denoted by leading 0x or 0x in java?

824


What is the difference between hashmap and hashtable? What is an interface?

778


What's the base class of all exception classes?

786


Explain access modifiers in java.

773


Is finalize() similar to a destructor?

773


What is the difference between jfc & wfc?

793


What is a function easy definition?

734


Explain how to convert any java object into byte array.

744


What are the advantages and disadvantages of object cloning?

777


Can we declare register variable as global?

726


Is overriding possible in java?

695


how can you take care of mutual exclusion using java threads? : Java thread

810