what Data encapsulation in java?

Answer Posted / sanjay

designing comprises of code and data.Data is enclosed with
memory wheras code is enclosed with functions.
Thus Data encapsulation is encapsulating the Data to Code
to perform certain functions.
Also Data encapsultion is required for hiding the actual
functios of the objects

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why not override thread to make a runnable? : Java thread

561


Can we have return statement in finally clause? What will happen?

521


What is the difference between jdk and jre?

614


How do you use spaces in java?

534


What is not object oriented programming?

512






Do you know why doesn't the java library use a randomized version of quicksort?

556


Say any two properties in beans?

637


What is the default value of local and global variables?

572


Explain the init method?

547


Can an interface be defined inside a class?

522


How do you input a string in java?

505


What is string example?

599


Is space a char?

534


What is a method vs function?

565


Is ruby built on java?

537