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

Which of the following classes will have more memory allocated?

775


when you will synchronize a piece of your code? : Java thread

746


Tell me about your ability to work under pressure

1947


What is the tradeoff between using an unordered array versus an ordered array?

909


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

732


Can we increase array size dynamically in java?

704


why would you use a synchronized block vs. Synchronized method? : Java thread

735


What is unmodifiable collection in java?

698


How many digits is int32?

721


What is tochararray in java?

694


Are static members inherited to sub classes?

868


What restrictions are placed on method overriding in java programming?

742


Is null an object java?

737


Can we convert stringbuilder to string in java?

733


What do you mean by local class?

745