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 |
Is java ee and j2ee same?
Hi friends can you give me sample code for Entire j2ee web application with struts and hibernate.I mean code for Dao, DaoImpl, HibernateDao ,HibernateDaoImpl, Dto , service , ServiceImpl , i.e.
which method does it invokes automatically when we click link in the webpage a)put b)get c)head d)post
Please explain about internal casting and external casting in java..?
How is java development environment setup?
Why frameworks are used in java?
What is button in java?
Describe action form?
What is java 2 platform, standard edition (j2se)?
What is the mvc on struts?
What is webservices in java?
What is a jpanel in java?