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
Why can't we make a class private in java?
What is the common usage of serialization? What exceptions occur during serialization?
Explain about narrowing conversion in java?
explain what is transient variable in java?
What are the string methods in java?
What is an interoperable application in java ?
What do you mean by ordered and sorted in collections in java?
What is the difference between checked exception and unchecked exception?
What is a function in java?
Where are global variables stored?
What is a method vs function?
What is a byte string?
What are the 4 types of research methods?
How to sort an unsorted array in java?
What are the Static and Dynamic Variables? Differentiate them.