public static void main(String args[]) { System.out.println(args[0]); System.out.println(args[1]); System.out.println(args[2]); System.out.println(args[3]); } Execution : java filename.java 1 myname false true output: 1 myname false true