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
Explain the difference between arraylist and linkedlist in java?
What are "methods" and "fields"?
What is difference between equal and == in java?
Can we start a thread twice in java?
Define how destructors are defined in java?
write a program that list all permutations of ABCDEF in which A appears before B?
What does replaceall do in java?
Can list be final in java?
What is one third plus one third as a fraction?
What is a prefix function.write down a code to compute prefix function.
How many bits is a float?
What is private static class in java?
What is blank final variable?
How do you reverse a word in java?
What are the different ways to handle exceptions?