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

Explain the difference between arraylist and linkedlist in java?

1027


What are "methods" and "fields"?

1067


What is difference between equal and == in java?

1006


Can we start a thread twice in java?

1041


Define how destructors are defined in java?

1075


write a program that list all permutations of ABCDEF in which A appears before B?

2518


What does replaceall do in java?

965


Can list be final in java?

986


What is one third plus one third as a fraction?

993


What is a prefix function.write down a code to compute prefix function.

1109


How many bits is a float?

1060


What is private static class in java?

1061


What is blank final variable?

1114


How do you reverse a word in java?

1150


What are the different ways to handle exceptions?

1046