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

Why can't we make a class private in java?

1030


What is the common usage of serialization? What exceptions occur during serialization?

1114


Explain about narrowing conversion in java?

1002


explain what is transient variable in java?

1133


What are the string methods in java?

1092


What is an interoperable application in java ?

995


What do you mean by ordered and sorted in collections in java?

992


What is the difference between checked exception and unchecked exception?

1015


What is a function in java?

1028


Where are global variables stored?

954


What is a method vs function?

1033


What is a byte string?

1093


What are the 4 types of research methods?

920


How to sort an unsorted array in java?

1126


What are the Static and Dynamic Variables? Differentiate them.

1108