Java- NullPointerException Example //Example of NullPointerException String a = null; System.out.println(a.toString()); // NullPointerException will be thrown Email ThisBlogThis!Share to TwitterShare to Facebook Reactions: Java