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 |
Why is java important for internet?
What is jaxr provider?
How to call main class with in main class?
Diffrence between arraylist and hashmap
What is authorization constraint?
to update a batch in a table in jdbc which method of statement object is used
What is digest authentication?
Every field has setter and getter methods.what is happening in this methods.
What is container-managed transaction?
What is java 2 platform, micro edition (j2me)?
What is architecture neutral in java?
Which of the following are subclasses of java awt component?