多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

Given a correctly compiled class whose source code is: Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains "." (current directory).   Which command line correctly runs Commander?()

  • A、java Commander
  • B、java com.sun.sjcp.Commander
  • C、java com/sun/sjcp/Commander
  • D、java -cp com.sun.sjcp Commander
  • E、java -cp com/sun/sjcp Commander
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题