1public static void main(String args[]) {
2 String str = null;
3 System.out.println(String.valueOf(str)); // This will print a String equal to "null"
4 System.out.println(str.toString()); // This will throw a NullPointerException
5}