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
Which of the following classes will have more memory allocated?
when you will synchronize a piece of your code? : Java thread
Tell me about your ability to work under pressure
What is the tradeoff between using an unordered array versus an ordered array?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
Can we increase array size dynamically in java?
why would you use a synchronized block vs. Synchronized method? : Java thread
What is unmodifiable collection in java?
How many digits is int32?
What is tochararray in java?
Are static members inherited to sub classes?
What restrictions are placed on method overriding in java programming?
Is null an object java?
Can we convert stringbuilder to string in java?
What do you mean by local class?