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

What are the two types of java?

752


When should I use singleton pattern?

796


Is array dynamic in java?

668


How many bytes is a unicode character?

715


Explain tree set and its features?

800


What is the method in java?

832


Can a java program have 2 main methods?

770


What is string variable?

784


What is constant in programming?

759


How to reverse a string in java?

746


Difference between ‘>>’ and ‘>>>’ operators in java?

867


What are the library functions in java?

773


Difference between static synchronization vs. Instance synchronization?

808


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

734


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1739