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
Is intellij better than eclipse?
What is a byte string?
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
When is the garbage collection used in Java?
How many bits is a float?
What is a short in java?
What is a variable simple definition?
Can we assign integer value to char in java?
What is java ceil?
what are the methods in object?
How to create an interface?
What is the synonym of framework?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
Explain the selection sort algorithm and state its time complexity?
What is command line argument