My Java Quiz

The ultimate place to learn Java!

Question #42: What is the output of the code below?

String a = "john";
String b = "doe";
System.out.println(a.compareTo(b));