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

Name four container classes.

561


What is the difference between array and array list in java?

611


Can we serialize singleton class?

539


What is basic syntax?

555


What is the difference between iterator and list iterator?

539






How do generics work?

522


What is the structure of java?

515


What are drawbacks of singleton class?

529


When will you define a method as static?

569


what is a green thread? : Java thread

580


What are examples of modifiers?

518


Can a boolean be null java?

547


What is meant by memory leak?

544


Explain creating threads by implementing runnable class?

593


Convert Binary tree to linked list.

595