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

Can I overload to string method

971


What is the final variable?

583


What is implicit object in java?

554


What is a class in java?

582


If you do not want your class to be inherited by any other class. What would you do?

565






What is the longest unicode character?

695


Differentiate between class and structure.

635


What is difference between filereader and bufferedreader?

537


How do you use nextline in java?

509


What best practices should you follow while writing multithreaded code in java?

549


How to retrieve data from database in java using arraylist?

532


What purpose do the keywords final, finally, and finalize fulfill?

618


If a class is declared without any access modifiers, where can the class be accessed?

601


How does callback work in java?

609


Why set do not allow duplicates in java?

583