Question: Which command from the JDK should be used to execute the main() method of a class named SmallProg? Select the one correct answer. (a) java

Which command from the JDK should be used to execute the main() method of a class named SmallProg?

Select the one correct answer.

(a) java SmallProg

(b) javac SmallProg

(c) java SmallProg.java

(d) java SmallProg.class

(e) java SmallProg.main()

Step by Step Solution

3.23 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Java programs are executed by the Java Virtual Machine JVM In the JDK the command java i... 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!