what are the oops concept in java explain with real time
examples
Answer Posted / praveena
OOPS Concepts are mainly 4
1.Abstraction
2.Encapsulation
3.Inheritance
4.Polymorphisam
Abstraction:Hiding unneccessary data from user is called
Abstraction access specifiers like public,private etc are
used to provide different level in abstraction.
Encapsulation:Taking data and object in a single unity is
called Encapsulation.A class is example for Encapsulation.
Inheritance:creating anew class from existing class is
called Inheritance.reusability is main advantage in
inheritance.
polymorphism:if single mthod performs different task is
called polymorphism.
| Is This Answer Correct ? | 89 Yes | 35 No |
Post New Answer View All Answers
What is gc()?
What is the flag in java?
What is e java?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
What is the static method?
Can we have try block without catch block?
What is the longest unicode character?
Why does my function print none?
What are different types of constants?
Explain abstract class in java?
What are register variables what are the advantages?
What is compareto () in java?
What is the implementation of destroy method in java. Is it native or java code?
Explain how to convert any java object into byte array.
Define canvas?