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();
}
}
The answer for this program is given as "true is a boolean operator". Can anyone please explain how it comes?
This one is one of the toughest I have encountered so far! I thought the answer should be only "is a boolean operator"
THIRU