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 |
What is jbutton in java?
What is j2ee tutorial?
What is the ear file?
What is a gui in java?
Describe the ear, war, and jar.
Is java part of oracle?
Is java is a high level language?
What is document root?
What are the four components of j2ee application?
What does web module contain?
what is defect. Is it runtime exception or comiletime exception
Is tomcat a java ee?