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 are parsing rules?

498


What is slash r?

539


What is a method in programming?

630


Convert a BST into a DLL and DLL to BST in place.

665


What is yield () in java?

478






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

559


What is a parameter in java?

542


What is assembly used for?

502


What does string [] args mean?

536


Is set sorted in java?

512


Can private class be inherited in java?

547


What are the two main uses of volatile in Java?

595


What makes a function well defined?

515


What do you mean by thread safe?

536


Can a static class implement an interface?

547