. Given:
public class Q1 {
static void processorB() {
System.out.println(" is a boolean Operator.");
}
static Q1 processorA(){
Q1 q=null;
if (("java").startsWith("null"))
return q;
else
return null;
}
static {
System.out.print("Java".startsWith(""));
}
public static void main(
String[] args) {
processorA().processorB();
}
What is the result?
a) Prints false is a boolean Operator.
b) Line 8 throws NullPointerException at Runtime.
c) Prints true is a boolean Operator.
d) Compile-time error at line 8.
e) None of the above.
correct answer is c
can someone explain how