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
Can abstract class have private constructor?
Explain what access modifiers can be used for methods?
What is bitwise complement?
Is java pass by value or pass by reference?
What do negative exponents mean?
How to sort numbers in java without array?
Explain differences between checked and unchecked exceptions in java?
What is the independent variable in an experiment?
What is java abstraction with example?
Tell me the latest versions in java related areas?
What is object in java?
How to convert string to char and vice versa?
What is generic type?
What are the string methods in java?
What is n in java?