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 .  Compilation fails. E .  An exception is thrown at runtime.

时间:2022-09-05 16:07:45 所属题库:SCJP程序员认证考试题库

相似题目