What command in the Java 2 SDK should be used to compile the following code contained in a file called SmallProg.java ?
public class SmallProg { public static void main(String[] args) { System.out.println("Good luck!"); } }
Select the one correct answer.
java SmallProg
javac SmallProg
java SmallProg.java
javac SmallProg.java
java SmallProg main
What command in the Java 2 SDK should be used to execute the main() method of a class named SmallProg ?
java SmallProg.class
java SmallProg.main()