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 is the difference between public, private, protected, and friend access?
What does mean in regex?
What is the purpose of main function in java?
What is a map in java?
What carriage return means?
What are java packages? What's the significance of packages?
How do you calculate square roots?
If we don’t want some of the fields not to serialize how to do that?
What is the access scope of protected access specifier?
What is an empty string in css?
Can a static member function access member variable of an object?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Can static methods be inherited?
Why you should not use singleton?
Explain what is Marker interface?