Given a correctly compiled class whose cource code is:
package com.sun.scjp;
class Commander{
public static void main(String[] args){
//more code here
}
}
Assume that the class file is located in /foo/com/sun/scjp/, the current directory is /foo/, and that the classpath contains “.”(current direcory).
which command line correctly runs Commander?
A. java Commander
B. java com. sim.Commander
C. java com/sun/scjp/Commander
D. java -cp com.sun.scjp Commander
E. java -cp com/sun/scjp Commander
Alguêm poderia me dizer a resposta e me explicar porque? Eu to fraquissimo em linha de comando.