Object Oriented Programming (OOPs)

© examsiri.com
Question : 14 of 72
 
Marks: +1, -0
Given:
1. public static void test(String str) {
2.   if (str == null | str.length() == 0) {
3.    System.out.println("String is empty");
4.   } else {
5.     System.out.println("String is not empty");
6.    }
7. }

And the invocation:
test(null);
What is the result?
Go to Question: