My Java Quiz

The ultimate place to learn Java!

Question #12: What will be the result of compiling and executing this code?

String s = null;
if ((s != null) || (!s.isEmpty())) {
  System.out.println(s);
} else {
  System.out.println("the string is null");
}