试题详情
单项选择题 public static void main(String[]args){ String str="null"; if(str==null){ System.out.println("null"); }else(str.length()==0){ System.out.println("zero"); }else{ System.out.println("some"); } } What is the result?()

A、null

B、zero

C、some

D、Compilationfails.

E、Anexceptionisthrownatruntime.

  • D
  • 关注下方微信公众号,在线模考后查看

热门试题