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 is meant by Encapsulation? Can you write a class to
explain encapsulation?

Answer Posted / ajay kumar sharma

Wraping of objects under a class is known as Encapsulation.

class
{
public static void main(String a[])
{
int a,b,
....
....
}
}

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can substring create new object?

1125


explain the concept of virtual method invocation in polymorphism in detail?

2223


Explain about wait() method?

1026


What is the disadvantage of java?

957


What is the benefit of inner / nested classes ?

988


What do you mean Abstraction in java?

1088


What is a map? What are the implementations of map?

1095


Why is string builder not thread safe?

1066


Which method cannot be overridden in java?

996


Does garbage collection occur in permanent generation space in jvm?

1089


what is object-oriented programming in java?

1053


Can a string be null?

988


Give the hierarchy of inputstream and outputstream classes.

1104


What is the difference in between cpp and java? Can u explain in detail?

1091


What is difference between class and object in java?

1078