How OOPS concept is achieved in Java?

Answer Posted / kk

Encapsulation,Inheritance,Polymorphism are OOPS principles.

In Java, these OOPS principles are achieved as follows:

Encapsulation & data hiding is achieved thru access modifiers

Inheritance is achieved thru Interfaces

Polymorphism is achieved thru overloading of methods

Is This Answer Correct ?    43 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between string and new string?

724


What does it mean to be immutable?

736


why Interface used?

713


What are methods?

743


Explain polymorphism citing an example.

783


What is the basic difference between string and stringbuffer object?

806


What is the purpose of the return statement?

765


What is the default value of local and global variables?

818


What is http client in java?

719


Does hashset allow duplicates in java?

793


List out five keywords related to exception handling ?

779


What are the 2 types of java programs?

773


Can we increase array size dynamically in java?

695


Why is java so important?

848


What is the meaning of variable in research?

750