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
What is difference in between java class and bean?
What is the impact of declaring a method as final?
What is public static?
When do we use hashset over treeset?
Can java list be null?
Whats the difference between notify() and notifyall()?
What is lambda programming?
What steps are taken when the OS shifts from one-thread execution to another?
What is lifetime variable?
What does sprintf return?
Explain the use of shift operator in java. Can you give some examples?
What is the role of garbage collector in java?
Is there any difference between nested classes and inner classes?
What is the functionability stubs and skeletons?
What are mutable classes?