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

Explain different ways of creating a thread?

524


What is the difference between compare and compareto in java?

487


What is difference between char array and string?

517


What is nextint java?

541


Can we use this () and super () in a method?

525






What is the output of the below java program?

585


do I need to use synchronized on setvalue(int)? : Java thread

547


What is java english?

485


What are the benefits of immutable objects?

532


Are arrays dynamic in java?

528


Is map sorted in java?

562


What method is used to specify a container's layout in java programming?

534


What is use of static in java?

518


What are memory tables?

601


What is the use of isempty in java?

531