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 transient and volatile in java?
Explain the differences between abstraction and encapsulation?
How to convert string to byte array and vice versa?
What are the differences between string, stringbuffer and stringbuilder?
What do you understand by the term wrapper classes?
What is the method to expand and collapse nodes in a jtree?
Explain, java is compatible with all servers but not all browsers?
What are the loops in java?
What environment variables do I need to set on my machine in order to be able to run java programs?
Write a program in java to find the maximum and minimum value node from a circular linked list.
Explain the difference between jdk, jre, and jvm?
How do you create a bulleted list?
What do you meant by active and passive objects?
What is the difference between a break statement and a continue statement?
What is == and === in javascript?