I am confusing when i am using static variables in a class
my confusion is when to use like i am declaring as below
1) public static varaible1;
2) private static variabl2;
and methods like this ,for example we have class like this
Code:public class StaticEx(){
private static stVarible = "XXXX";
public static String getStVarible(){
returtn stVarible;
}
public static void setStVarible(String varr){
stVarible = varr;
}
