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

What are synchronized methods ?

0 Answers  


What is the private method modifier?

0 Answers  


Write a function to find out longest palindrome in a given string?

0 Answers  


How does Vector implement synchronization?

4 Answers   Ness Technologies,


Write a program to reverse a number in java?

0 Answers  


What is java Applet?

0 Answers   TCS,


What is Ideal Design of Class?

2 Answers  


What is stream api in java8?

0 Answers  


What is volatile data type?

0 Answers  


Is break statement can be used as labels in java?

0 Answers  


What are the access modifiers available in java?

0 Answers  


What are the two types of java?

0 Answers  


Categories