可学答题网 > 问答 > OCJP(310-065)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Given: And MainClass exist


Given: And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to "." (current directory). Which two java commands entered at the commandline will run MainClass?()

  • Ajava MainClass if run from the /apps directory
  • Bjava com.company.application.MainClass if run from the /apps directory
  • Cjava -classpath /apps com.company.application.MainClass if run from any directory
  • Djava -classpath . MainClass if run from the /apps/com/company/application directory
  • Ejava -classpath /apps/com/company/application:. MainClass if run from the /apps directory
参考答案
参考解析:
分类:OCJP(310-065)题库
相关推荐

1、An existing cluster ha

An existing cluster has an application node and database node. Changes in the application &ensp...

2、You modify an existing

You modify an existing Microsoft ASP.NET application by using the Microsoft .NET Framework version&e...

3、You have an existing&e

You have an existing Active Directory site named Site1. You create a new Active Directory ...

4、You modify an existing

You modify an existing Microsoft ASP.NET application by using the Microsoft .NET Framework version&e...

5、Given: and two separate&en

Given:and two separate command line invocations:java Yippeejava Yippee 1 2 3 4What is the res...

6、You have an existing&e

You have an existing Active Directory site named Site1. You create a new Active Directory ...