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


Please Help Members By Posting Answers For Below Questions

Can abstract class have private constructor?

492


Explain what access modifiers can be used for methods?

563


What is bitwise complement?

494


Is java pass by value or pass by reference?

532


What do negative exponents mean?

540






How to sort numbers in java without array?

520


Explain differences between checked and unchecked exceptions in java?

627


What is the independent variable in an experiment?

543


What is java abstraction with example?

547


Tell me the latest versions in java related areas?

574


What is object in java?

523


How to convert string to char and vice versa?

511


What is generic type?

563


What are the string methods in java?

576


What is n in java?

532