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 deployer?
Why is java used?
What is build file?
What is container-managed transaction?
How can we serialize a jsp page.
Name the Implicit variable which is used to access other implicit objectes present in JSP.
Why awt is used in java?
What is java developer job description?
Who is java developer?
What is j2ee component?
What will happen when you compile and run the following code?
Why is java called technology?