public class CreateClass extends AbstractExample
public class CreateClassExample
{
private static String staticGlobalVariable = "I'm a static global variable at class";
public int globalVariable;
public CreateClassExample(int intVal)
{
this.globalVariable = intVal;
}
private void commonMethod()
{
System.out.println("staticGlobalVariable : " + staticGlobalVariable);
System.out.println("globalVariable : " + this.globalVariable);
}
public static void main(String[] args)
{
new CreateClassExample(1024).commonMethod();
}
}
classLoader, systemOut| 构造器和说明 |
|---|
CreateClass() |
public static void main(String[] args) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
Copyright © 2015. All rights reserved.