whst is encapsulation?when u encpsulate actually while
devoloping code?

Answer Posted / dhawal

Encapsulation is process of hiding data
for example if access specifier we are using for accessing
class is private then only that class object can access the
methods and variables in that class

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java instanceof operator?

795


How many static init can you have?

912


What is an example of a constant variable?

789


What do you mean by chromounits in java8?

718


Is integer a class?

792


How do you create a first line indent?

736


What is array initialization in java?

703


How does the garbage collector works in java?

788


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

725


When is the finalize() called?

907


What are the 6 mandatory procedures for iso 9001?

734


How do you declare an array that will hold more than 64KB of data?

915


What are the six ways to use this keyword?

826


What is use of set in java?

708


Can a variable be local and static at the same time?

763