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
what do you mean by classloader in java?
What is hotjava?
What is the difference between @before and @beforeclass annotation?
Explain the reason behind ending a program with a system.exit(0)?
Can we use String with switch case?
What are the 8 data types in java?
Is static a singleton?
What is the base class of all exception classes in java?
How do you take thread dump in java?
How can u increase the heap size in the memory?
How to compare strings in java?
Is array passed by reference in java?
What are the main features of java?
What must a class do to implement an interface in java programming?
What is a modifier?