black

SCJP程序员认证考试

登录

单项选择题

If this source code is contained in a file called SmallProg.java, what command should be used to compile it using the JDK?() 
 public class SmallProg {  
public static void main(String args[]) 
{ System.out.println("Good luck!"); }  }  

A.java SmallProg
B.avac SmallProg
C.javac SmallProg.java
D.java SmallProg main

相关考题

单项选择题 HowdoobjectspassmessagesinJava?()

多项选择题 Given that Thing is a class, how many objects and reference variables are created by the following code?()   Thing item, stuff;   item = new Thing();   Thing entity = new Thing();

单项选择题 Which line contains a constructor in this class definition?()   public class Counter { // (1)   int current, step;   public Counter(int startValue, int stepValue) { // (2)   set(startValue);   setStepValue(stepValue);  }   public int get() { return current; } // (3)   public void set(int value) { current = value; } // (4)   public void setStepValue(int stepValue) { step = stepValue; } // (5)  }

All Rights Reserved 版权所有©建筑考试题库(jzkao.com)

备案号:湘ICP备2020024380号-3