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 do you achieve singleton?

529


Explain an algorithm to find depth of a binary tree.

544


Why are the objects immutable in java?

544


Write a program to check string is palindrome without using loop?

563


What is a functional interface?

545






What are the different tags provided in jstl?

547


What does this () mean in java?

543


What is meant by memory leak?

537


Explain what are final variable in java?

572


What is the difference between post and put?

533


Explain try and catch keywords in java?

619


Explain what pure virtual function is?

593


Which is faster string or stringbuilder?

515


what is nested class in java?

597


What is the byte order of byte buffer?

560