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 does java stand for?

754


What are the various access specifiers for java classes?

749


What is a jagged array in java?

757


What is java string pool?

743


What are the properties of thread?

663






5 Coding best practices you learned in java?

805


Can we override constructors?

742


What is advantage of java?

746


Can you pass by reference in java?

705


What is the purpose of static methods and variables?

727


Is a boolean variable?

706


What is the maximum size of list in java?

708


What are the different collection views provided by maps?

746


Which is dependent variable?

653


How many types of equations are there?

720