| |
1.22.1.Class variable (static variable) exists regardless of the number of instances of the class, even if the class is never instantiated. |
|
public class MainClass{
static int intValue = 8;
public static void main(String[] argv){
System.out.println(intValue);
}
}
|
|
1.22.static Variable | | 1.22.1. | Class variable (static variable) exists regardless of the number of instances of the class, even if the class is never instantiated. | | |
|