The code snippet
if( "Welcome".trim() == "Welcome".trim() )
System.out.println("Equal");
else
System.out.println("Not Equal");
will
Options
- compile and display “Equal”
- compile and display “Not Equal”
- cause a compiler error
- compile and display NULL
CORRECT ANSWER : compile and display “Equal”
Write your comments