2. Best practice is to use whatever is clearest - personally I use public variables unless the JavaBeans API is involved
Thank you bill for your suggestions..
But, i am using bean type setter and getter methods. like JavaBeans API
Shall I create a String variable for it.. and use it whereever requried?.
If so, I need to create 20 string variables like that.
or shall I call getter methods for all of them.
which would be better?