Computer Applications
Predict the output of the following Java program snippet:
String str1 = "Information Technology";
String str2 = "information technology";
boolean p = str1.equalsIgnoreCase(str2);
System.out.println("The result is " + p);
Related Questions
Predict the output of the following Java program snippet:
boolean p; p = ("BLUEJ".length() > "bluej".length()) ? true: false;
Predict the output of the following Java program snippet:
String str = "Information Technology"; int p; p = str.indexOf('n'); System.out.println(p);
What do the following functions return?
String x = "Vision"; String y = "2020"; System.out.println(x.length());
What do the following functions return?
String x = "Vision"; String y = "2020"; System.out.println(x + y);