26. Select the correct answer form the list of answers?
public class TestBit {
public static void main(String args[]) {
String s = "Hello World";
if ((s != null) && (s.length() > 6))
System.out.println("The value of s is " + s );
}
}
[a] Compile time error
[b] Runtime error
[c] No output is printed
[d] The value of s is Hello World is printed on the screen
Answer
[d] The value of s is Hello World is printed on the screen |