Question: Which command from the JDK should be used to compile the following source code contained in a file named SmallProg.java? Select the one correct answer.

Which command from the JDK should be used to compile the following source code contained in a file named SmallProg.java?

public class SmallProg ( public static void main(String[] args) {System.out.println ("Good luck!

Select the one correct answer.

(a) java SmallProg

(b) javac SmallProg

(c) java SmallProg.java

(d) javac SmallProg.java

(e) java SmallProg main

public class SmallProg ( public static void main(String[] args) {System.out.println ("Good luck! "); } }

Step by Step Solution

3.52 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

d The compiler supplied with t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!