what Data encapsulation in java?

Answer Posted / sudheer nath

data encapsulation means the data member and the member function can remains inside the class ,only those member function which is the part of the class can only access thw data member of a class .tise is used for security purpuse .

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create an immutable class?

581


Write a program in java to create a doubly linked list containing n nodes.

569


Is there a sort function in java?

584


What is method in java with example?

497


How do you get length in java?

570






What is the java project architecture?

1795


What is double checked locking in singleton?

621


What is fail fast in java?

580


What are examples of modifiers?

522


What are data types in oop?

560


How do generics work?

524


Is ++ operator thread-safe in java?

644


Explain naming conventions for packages?

584


Why does java have two ways to create child threads?

478


Which sorting is best in java?

546