JAVA Strings
Determine output:public class Test{ public static void main(String args[]){ String str = null; if(str.length() == 0){ System.out.print("1"); } else if(str == null){ System.out.print("2"); } else{ System.out.print("3"); } }}

"3" is printed.
Compilation fails.
An exception is thrown at runtime.
"1" is printed.
"2" is printed.

ANSWER DOWNLOAD EXAMIANS APP