black

SCJP程序员认证考试

登录

单项选择题

What will be written to the standard output when the following program is run?() 
public class Qd803 {  
public static void main(String args[]) {  
String word = "restructure";  
System.out.println(word.substring(2, 3));  
}  
}  

A.est
B.es
C.str
D.st
E.s

相关考题

单项选择题 What is wrong with the following code?()   class MyException extends Exception {}   public class Qb4ab {   public void foo() {  try {  bar();  } finally {  baz();   } catch (MyException e) {}  }   public void bar() throws MyException {   throw new MyException();  }   public void baz() throws RuntimeException {   throw new RuntimeException();   }   }

多项选择题 Whichstatementsaretrueconcerningtheeffectofthe>>and>>>operators?()

多项选择题 Giventhefollowingclass,whichstatementscanbeinsertedatposition1withoutcausingthecodetofailcompilation?() publicclassQ6db8{ inta; intb=0; staticintc; publicvoidm(){ intd; inte=0; //Position1 } }

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

备案号:湘ICP备2020024380号-3