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

what do you mean by classloader in java?

973


What is hotjava?

950


What is the difference between @before and @beforeclass annotation?

1012


Explain the reason behind ending a program with a system.exit(0)?

1036


Can we use String with switch case?

1107


What are the 8 data types in java?

933


Is static a singleton?

923


What is the base class of all exception classes in java?

998


How do you take thread dump in java?

941


How can u increase the heap size in the memory?

950


How to compare strings in java?

917


Is array passed by reference in java?

978


What are the main features of java?

911


What must a class do to implement an interface in java programming?

963


What is a modifier?

1427