Skip to content

Instantly share code, notes, and snippets.

@takahashi-h5
Created August 31, 2019 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takahashi-h5/8a24efe0aed8e02489f57910ca8d04fc to your computer and use it in GitHub Desktop.
Save takahashi-h5/8a24efe0aed8e02489f57910ca8d04fc to your computer and use it in GitHub Desktop.
public class Main {
static int i;
static boolean flag;
static short s;
static float f;
static double d;
static long l;
static char c;
static byte b;
public static void main(String[] args) {
System.out.println(i); // 0
System.out.println(flag); // false
System.out.println(s); // 0
System.out.println(f); // 0.0
System.out.println(d); // 0.0
System.out.println(l); // 0
System.out.println(":" + c + ":"); // : :
System.out.println(b);// 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment