explain how many oops concepts available in java with realtime
scenarios?



explain how many oops concepts available in java with realtime scenarios?..

Answer / sakthi k

Encapsulation
Wrapping up of data and member function
together. Eg: Capsule is the good example for encapsulation.

Polymorphism
Ability of an object to take more than one form.
Poly-Many, Mor-Shape. For Eg: Anniyan film .

Compile time polymorphism otherwise known as
Static polymorphism.

Runtime polymorphism otherwise known as Dynamic
polymorphism.

Abstraction:

Represents the information without including the
background details.

For Eg: ATM Machine . .It provides the results
without including the background transaction.

Inheritance:

The process of acquiring base class property is
known as Inheritance.
Types
*Single inheritance
*Multiple inheritance
*Multi level inheritance: Eg:grand father-
father-son relationship.
*Hierachical inheritance
*Hybrid inheritance
Object:

Real time entity(attributes). Collection of its
own property.
Everything in the world is considered as real
objects.

Is This Answer Correct ?    25 Yes 2 No

Post New Answer

More Core Java Interview Questions

How to override equals() and hashCode() method in java?

1 Answers   Wipro,


In java how do we copy objects?

0 Answers  


Is java an open source?

0 Answers  


Explain about public and private access specifiers?

0 Answers  


Using callable statement how can you pass out parameters, explain with example?

0 Answers  






Can an interface extend a class?

0 Answers  


What is the difference between superclass and subclass?

0 Answers  


Is void a data type?

0 Answers  


is it possible to add a object in a HASHMAP

6 Answers   HCL,


Differences between GridLayout and GridBagLayout?

1 Answers  


Can we define private and protected modifiers for variables in interfaces?

0 Answers  


What is bubble sorting in java?

0 Answers  


Categories