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
a Java programs are executed by the Java Virtual Machine JVM In the JDK the command java i... View full answer
Get step-by-step solutions from verified subject matter experts
