My Java Quiz

The ultimate place to learn Java!

Question #45: What is the output of the following code?

String x = "John Doe";
System.out.println("'"+x.substring(5)+"'");