black

Java认证考试综合练习

登录

单项选择题

package com.sun.sjcp;
public class Commander{
public static void main(String[]args){
//more code here
}
}
Assume that the class fileis 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.sim.sjcp.Commander
C.java com/sun/sjcp/Commander
D.java-cpcom.sun.sjcp Commander
E.java-cpcom/sun/sjcp Commander

相关考题

单项选择题 public classYippee{ public static void main(String[]args){ for(intx=1;xSystem.out.print(args[x]+""); } } } and two separate command line invocations:j avaYippee javaYippee1234 What is the result?()

多项选择题 Which two are true?()

单项选择题 11.public void genNumbers(){ 12.ArrayList numbers=new ArrayList(); 13.for(inti=0;i 14.intvalue=i*((int)Math.random()); 15.IntegerintObj=newInteger(value); 16.numbers.add(intObj); 17.} 18.System.out.println(numbers); 19.} Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbagec ollection?()

All Rights Reserved 版权所有©求知题库网库(csqiuzhi.com)

备案号:湘ICP备14005140号-1

经营许可证号:湘B2-20140064