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 |
What is package protected in java?
Hi friends, i am new to java. can you explain how java is secured.
Can you create an object of an abstract class?
write a program to create an arraylist and listeterator.and value should be enter through keyboard.
Do you need to import math in java?
Can a constructor be made final?
How applets will communicate with each other?
What is the minimum and maximum length of an identifier?
What are some examples of variable costs?
What is mean by UML? what is the use? where we are using?
Can we clone singleton class in java?
What is meant by class loader and how many types are there?