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
Why bytecode is called bytecode?
What are the four integer types supported by java?
What are predefined functions?
What is public/private protected in java?
how to create multithreaded program? Explain different ways of using thread? : Java thread
Give any two differences between C++ and java.
What is primitive array?
Explain listiterator and methods in listiterator?
What is protected in java?
How many bytes is a char in java?
Why is the main method declared static?
can used Protected Class outside Function.?
What is independent and dependent variables in research?
What is runtime polymorphism or dynamic method dispatch?
Explain about complier design(phases)