java - Accessing application data -


i using static fields store application data, standard way or there other way do?

in detail : first want read settings db , store in variables , use through out application in classes. right using static fields standard way

static fields used store class level information not object level. if u need sote value on class level use static varialbe else use instance variable.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -