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 substring create new object?
explain the concept of virtual method invocation in polymorphism in detail?
Explain about wait() method?
What is the disadvantage of java?
What is the benefit of inner / nested classes ?
What do you mean Abstraction in java?
What is a map? What are the implementations of map?
Why is string builder not thread safe?
Which method cannot be overridden in java?
Does garbage collection occur in permanent generation space in jvm?
what is object-oriented programming in java?
Can a string be null?
Give the hierarchy of inputstream and outputstream classes.
What is the difference in between cpp and java? Can u explain in detail?
What is difference between class and object in java?