Question: 11. public static void main(Stringi args) { 12. String str = null; 13. if (str == null) { 14. System.out.println(null); 15. } else (str.length() ==

 11. public static void main(Stringi args) { 12. String str =

11. public static void main(Stringi args) { 12. String str = "null"; 13. if (str == null) { 14. System.out.println("null"); 15. } else (str.length() == 0) { 16. System.out.println("zero"); 17. } else { 18. System.out.println("some"); 19. } 20.} What is the result

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!