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 is the difference between public, private, protected, and friend access?

1103


What does  mean in regex?

1108


What is the purpose of main function in java?

1077


What is a map in java?

1052


What carriage return means?

1005


What are java packages? What's the significance of packages?

1406


How do you calculate square roots?

1216


If we don’t want some of the fields not to serialize how to do that?

1063


What is the access scope of protected access specifier?

1042


What is an empty string in css?

1101


Can a static member function access member variable of an object?

1057


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1159


Can static methods be inherited?

1103


Why you should not use singleton?

1027


Explain what is Marker interface?

1135