public class Sample{
public static void main(String args[]){
System.out.println("/n Say hi 2 me");
}
public class Hello{
public static void main(String args[]){
System.out.println("/n Hello!");
}
}
}
I have run this code using Command Prompt but I was able to notice that modifier 'static' is used for only constant variable Declarations why????? please help me out in understanding this???