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
Is there any difference between nested classes and inner classes?
What is meant by binding in rmi?
What do you mean by byte code?
Say any two properties in beans?
Can a java program have 2 main methods?
What is an object in java?
What is lossy conversion in java?
What are the escape sequences in java?
what is encapsulation in java? Explain
What is a jit compiler?
What is length in java?
What is a consumer in java?
Where is the find and replace?
Does java vector allow null?
Explain notifyall() method of object class ?