How OOPS concept is achieved in Java?

Answer Posted / ranjan

Encapsulation which is achieved by making classes.

Inheritance which is achieved by extending class and implementing interfaces.

polymorphism is achieved by function overriding and function overloading. Operator overloading is not allowed in java although implicitly string class uses + operator..


note : Abstraction is nothing its just showing functionality and hiding complexity

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain wrapper classes in java?

524


Explain the transient field modifier?

560


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

754


What is Java Annotations?

551


What are the four pillars of java?

604






Tell some latest versions in JAVA related areas?

552


What is string length in java?

486


Is null function in java?

562


What is multi level inheritance in java?

552


What is the nested interface?

593


What is the purpose of a default constructor?

574


What are the supported platforms by java programming language?

557


Difference between Preemptive scheduling vs. Time slicing?

565


What are local variables?

587


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

555