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

Is math an abstract class in java?

593


What is e in java?

600


Do you need to import math in java?

628


Can we pass a primitive type by reference in java? How

593


Why do we need variables?

594






Can a class extend more than one class?

690


How many bits is a float?

612


What is a singleton puppy?

592


Explain exception chaining in java?

677


Why generics are used in java?

624


Can we create more than one object singleton class?

653


what methods would you overwrite in java.lang.object class?

626


Write a program to solve producer consumer problem in java?

629


what r advatages of websphere? & how to deploy?

1720


What are the three parts of a lambda expression?

604