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 the difference between overriding & overloading?
What is user defined exception in Java?
How will you reverse a link list without using recursion?
What is the purpose of encapsulation?
Can a static class have a constructor java?
How does a for loop work?
Is sizeof a keyword in java programming?
What is constructor in java ?
What are the elements of java?
How can we use primitive data types as objects?
How to implement a multithreaded applet?
What is the use of arraylist in java?
Can we split string with in java?
do I need to use synchronized on setvalue(int)? : Java thread
How do you reverse a string in java without using string buffer?