Determine output:
public class Test{
public static void main(String args[]){
String s1 = "SITHA";
String s2 = "RAMA";
System.out.println(s1.charAt(0) > s2.charAt(0));
}
}
public class Test{
public static void main(String args[]){
String s1 = "SITHA";
String s2 = "RAMA";
System.out.println(s1.charAt(0) > s2.charAt(0));
}
}A. true
B. false
C. 0
D. Compilation error
E. Throws Exception
Answer: Option A

s1.charAt(0) > s2.charAt(0) is same as 'S' > 'R'
Ascii of S=83
Ascii of R=82
so 83 > 82
true
how is it possible can you please explain this answer
If we run it it shows compilation error.
How it becomes true can any one explains it.....
what will be the output?