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

Which of the following can be referenced by a variable? A. The instance variables of a class only B. The methods of a class only C. The instance variables and methods of a class

2 Answers  


why java is not supporting multiple inheritence?

3 Answers  


Is namespace same as package in java?

0 Answers  


What do you mean by inner class in java?

0 Answers  


What are the two ways to create a thread?

0 Answers  






what is aberivation of java?

14 Answers  


In which language JVM (Java Virtual Machine) is implemented

5 Answers  


what is java bean?where can we use it?

12 Answers   TCS,


write a program to create an vector and listeterator.and value should be enter through keyboard.

1 Answers   Axcend,


What are the different approaches to implement a function to generate a random number?

0 Answers   Axtria, ITC Indian Tobacco Company,


What is garbage collection? What is the process that is responsible for doing that in java?

0 Answers  


What are different types of control structures?

0 Answers  


Categories