Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is null a string?

1000


What will happen when using pass by reference in java?

990


What is an inner class in java?

969


Write a code to show a static variable?

1091


What are the 5 types of research methods?

1139


Why is the main method declared static?

1137


What is type inference in java8?

1047


What are the difference between string, string builder, and string buffer in java?

1121


What do you mean by scope of variable?

892


How to display arraylist values in java?

1009


Why object class is super class for every class in java?

1027


what is the constructor and how many types of constructors are used in java?

1004


What is file in java?

1033


What is a flag value?

1026


Which methods cannot be overridden in java?

991