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
Can a static method be final?
What is the purpose of default constructor?
What is singleton class example?
How many types of parsers are there?
Can we synchronize static methods in java?
What is the size of int?
What is remote method invocation (rmi)?
Java is pass by value or pass by reference? Explain
Which data type is class in java?
Tell some latest versions in JAVA related areas?
What is thread start?
What is java jit compilers?
What access modifiers can be used for class ?
How many bits is a string?
What is treeset in java collection?