Use of private variable while creating properties ???
Answer Posted / 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 |
Post New Answer View All Answers
What is the concept of connection pooling?
What is application client module?
What is java developer?
What is java full stack developer?
What is source file in java?
What is java transaction service (jts)?
What is DDP?
What is event in java?
What is a java developer?
What is document?
What is external entity?
What is a jpanel in java?
What are the components and containers in java?
What is component contract?
Is j2ee a framework?