check if an object is null java

Solutions on MaxInterview for check if an object is null java by the best coders in the world

showing results for - "check if an object is null java"
Hugo
19 Aug 2016
1// simple test
2
3String name = null;
4
5if(name != null)
6  System.out.printf("Hello Mr.%s\n", name);
7else
8  System.err.println("error, name == null");
9
10