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

Is intellij better than eclipse?

533


What is a byte string?

611


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

589


When is the garbage collection used in Java?

652


How many bits is a float?

533






What is a short in java?

494


What is a variable simple definition?

572


Can we assign integer value to char in java?

505


What is java ceil?

565


what are the methods in object?

631


How to create an interface?

623


What is the synonym of framework?

555


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

544


Explain the selection sort algorithm and state its time complexity?

597


What is command line argument

702