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!](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1706/8/7/4/75865bcd786afa191706874755913.jpg)
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
d The compiler supplied with t... View full answer
Get step-by-step solutions from verified subject matter experts
