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

What is an eror in java?

548


What do bitwise operators do?

509


What is structure of java heap? What is perm gen space in heap?

530


Can we use String with switch case?

654


Which is bigger float or double java?

508






What is the significance of continue jump statement? Explain with an example.

726


What is collection class in java?

529


What is the final class?

536


What is the preferred size of a component in java programming?

533


How do you differentiate abstract class from interface?

518


Why to use nested classes in java?

575


What do you mean by inner class in java?

556


What is time complexity algorithm?

536


Mention the default values of all the elements of an array defined as an instance variable.

506


Is 0 a real number?

574