What is meant by Encapsulation? Can you write a class to
explain encapsulation?
Answer Posted / srinivasa
All the javabeans written in java follows encapsulation.
In java bean variables are declared as private for
security. will be accessed using setter and getter method.
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are the rules for variable declaration?
Is null a value?
What do you mean by compiler?
Can we define constructor in inner class?
What is math floor in java?
How to create a base64 decoder in java8?
How many bytes is 255 characters?
what is deadlock? : Java thread
Can we start a thread twice in java?
Is a string literal?
What are the principle concepts of oops?
What is the difference between array list and vector in java?
Explain heap sort?
What is are packages?
Can java inner class be static?