Use of private variable while creating properties ???
Answer / m4n07
I am newbie in J2EE & looking for strong basic behind each
concept as,
Why do we use private access specifier before each variable of
type property bcoz ultimately to access it outside the class
we use public method as getter & setter ?
If we use getter & setter to access it outside the class so
better we make variable as public so that it is easily
available outside of the class...
Please guide me why do we use as private ????
| Is This Answer Correct ? | 0 Yes | 1 No |
How do I run java?
What does enterprise javabeans module contain?
What are the different java technologies?
Which is latest technology in java?
What is a java developer?
What is api in j2ee?
Describe the ear, war, and jar.
What is the difference between sendRedirect() and forward()? in what situations do we have to use send redirect() instead of forward().
13 Answers Honeywell, Mind Tree, Samsung, Wipro,
What is mean by j2ee?
Explain the four types of container that the j2ee specification defines
What is javamail?
Why is java important for internet?