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

Can a lock be acquired on a class in java programming?

536


What are the escape sequences in java?

567


What is a percentage sign called?

621


State one difference between a template class and class template.

628


What is member in java?

496






Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

609


What is the purpose of a parameter?

533


What is a buffer in java?

577


How is string stored in java?

564


Which keyword specify that a variable is effectively final ?

582


What is procedure writing?

515


What is garbage collector?

630


What is assembly language?

554


Explain about the select method with an example?

593


when you will synchronize a piece of your code? : Java thread

533