June 2018
Beginner
722 pages
18h 47m
English
The indexOf() method of the String class does not handle null. Here is some demo code:
String s = null;int i = StringUtils.indexOf(s, "abc"); //return -1s.indexOf("abc"); //throws NullPointerException
Read now
Unlock full access