whst is encapsulation?when u encpsulate actually while
devoloping code?

Answer Posted / dhawal

Encapsulation is process of hiding data
for example if access specifier we are using for accessing
class is private then only that class object can access the
methods and variables in that class

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State some situations where exceptions may arise in java?

852


What is codebase?

774


What is the difference between @before and @beforeclass annotation?

756


When parseint method can be used?

739


Does garbage collection occur in permanent generation space in jvm?

830


Is java based on c?

768


What is compareto?

756


How do you identify independent and dependent variables?

748


What is mean by collections in java?

791


Is intellij better than eclipse?

784


Can we make constructors static?

969


Can we write any code after throw statement?

835


Explain creating threads by implementing runnable class?

857


what is optional in java 8?

845


What is a double?

836