public class FirstSample{
public static void maim(______args[]){
System.out.println(“你好!”);
}
}
A.) staff
B.) double
C.) Int
D.) String
A.
B.
C.
D.
[单选题]( 30 )在程序的下划线处应填入的选项是public class Test _________{public static void main(String args[]){Test t = new Test();Thread tt = new Thread(t);tt.start();}public void run(){for(int i=0;i<5;i++){system.out.println( " i= " +i);}}}A. ) implements RunnableB.
[试题]请在下划线处填入代码,是程序正常运行并且输出 “ Hello! ”C.lass Test ( 15 ) {Public static void main (String[] arge){Test t = new Test();t.start();}Public void run(){System.out.println( “ Hello! ” );}
[单选题]在下面附属类方法中的下划线处应填入的正确参数是public void writeData( )throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar,setTime(hireDay); out.println(name+"|" +salary+"|" +calendar.get(Calendar.YEAR)+"|" +(calendar.get(Calendar.MONTH)+1
[单选题]在下面附属类方法中的下划线处应填入的正确参数是( )。 public void writeData( ______ ) throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"|"+salary+"|" +calendar.get(Calendar.YEAR)+"I" +(calendar.get(Calen
[单选题]在下面附属类方法中的下划线处应填入的正确参数是 public void writeData(______)throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"|"+salary+"|" +calendar.get(Calendar.YEAR)+"|" +(calendar.get(Calendar.MQN
[单选题]在下划线上应填入的内容是()。A . EnabledB . VisibleC . textD . Interval
[单选题]为使下列代码正常运行,应该在下划线处填入的选项是abstract class Person{public Person(String n)!name=n;}public____String getDescription();public String getName(){return name;}private String name;}A.staticB.privateC.abstractD.final
[单选题]3在下面附属类方法中的下划线处应填入的正确参数是( )。 public void writeData(______)throws IOException { GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"T" +salary+"|" +calendar.get(Calendar.YEAR)+"|" +(calendar.get(Calen
[单选题]要得到某目录下的所有文件名,在下列代码的下划线处应填入的内容是(两个下划线的填写内容相同)______pathName=new______(args[0]);String[]fileNames=pathname.list();A.) FIlelnputStreamB.) FileOutputStreamC.) FileD.) RandomAccessFileA.B.C.D.
[单选题]在下列代码中应填入下划线中的是( )。程序中publicstaticvoidmaim应改为publicstaticvoidmainA.staffB.