Tag Archives: Java

Why Java’s main() is `public static void`

As we know, in Java’s Console Programme, its entrance method main() or main(String[] args)’s attribute is always public static void. It seems is a custom, but why? Is it neccessary?

Native Data Types of Java

Data Type Size Range byte 8 bit -128~127 short 16 bit -32768~32767 int 32 bit -2^31~2^31-1 long 64 bit -2^63-2^63-1 float 32 bit 3.4E-45~1.4E38 double 64 bit 4.9E-324~1.8E308 boolean 8 bit true/false char 16 bit Unicode