Language Fundamentals
© examsiri.com
Question : 16 of 24
Marks:
+1,
-0
Given:
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?
Go to Question: