WEB/java

[NOTE] Field, method in static method

고규마 2017. 12. 19. 22:41

All the fields and methods must be static in a static method!!!


ex) public static void main(String[] args){


// fields or methods in here are static because 'main' method is used in common(?).


}