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

Java认证考试

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

package com.company.application; public class MainClass{ public static void main(String[]args){} } And Main Class exists in the/apps/com/company/application directory.Assume the CLASSPATH environment variable is set to“.”(currentdirectory).Which two java commands entered at the command line will run MainClass()

  • A、java MainClass if run from the/apps directory
  • B、javacom.company.application.MainClass if run from the/apps directory
  • C、java-classpath/appscom.company.application.MainClass if run fro many directory
  • D、java-classpath.MainClass if run fromt he/apps/com/company/application directory
  • E、java-classpath/apps/com/company/application:.MainClass if run from the/apps directory
  • F、javacom.company.application.MainClassifrunfromthe/apps/com/company/application directory
正确答案:B,C
答案解析:
进入题库查看解析

微信扫一扫手机做题