How OOPS concept is achieved in Java?

Answer Posted / james

1) Encapsulation:- is achieved through
classes.(Binding/Storing data and methods as a single unit )
2) Abstraction:-it is achieved through private, protected,
public, default keywords.
3)Inheritance through interfaces.
4)polymorphism is achieved through method overloading and
constructor overloading.
5)Message Passing -through objects calling

Is This Answer Correct ?    30 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is e in java?

529


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

580


Explain about static imports in java?

582


How can u increase the heap size in the memory?

538


Why is serialization required?

523






What is size of int in java?

534


Who developed java?

550


What are loops in java?

535


Why are lists ordered in java?

528


How many types of java are there?

537


What exactly is java?

496


Are floats faster than doubles?

549


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

646


Is string a wrapper class?

500


What are static methods?

564