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 home handle?
How long does it take to master java?
How does event listener work in java?
What is connector?
What is application component provider?
What is jradiobutton in java?
Describe orm?
Write a program for Sum of the digits for a given number Ex: suppose user entered Number is 1214, It should calculate the above number like 1+2+1+4 = 8
What is ebxml?
What is main method in java?
what is external varibles in jsp?
What is ejb jar file?