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 transient and volatile in java?

955


Explain the differences between abstraction and encapsulation?

995


How to convert string to byte array and vice versa?

1019


What are the differences between string, stringbuffer and stringbuilder?

966


What do you understand by the term wrapper classes?

942


What is the method to expand and collapse nodes in a jtree?

982


Explain, java is compatible with all servers but not all browsers?

1004


What are the loops in java?

948


What environment variables do I need to set on my machine in order to be able to run java programs?

961


Write a program in java to find the maximum and minimum value node from a circular linked list.

1006


Explain the difference between jdk, jre, and jvm?

995


How do you create a bulleted list?

1196


What do you meant by active and passive objects?

1017


What is the difference between a break statement and a continue statement?

989


What is == and === in javascript?

992