Java / Using String
what happens if beginIndex is equal to length of the String when calling substring(int beginIndex)?
substring returns an empty string and does not throw IndexOutOfBoundException.
More Related questions...
substring returns an empty string and does not throw IndexOutOfBoundException.
More Related questions...
System.out.println ("A"=="A");
Interviews Questions |
About Javapedia.net Javapedia.net is for Java and J2EE developers, technologist and college students who prepare of interview. Also this site includes many practical examples. This site is developed using J2EE technologies by Steve Antony, a senior Developer/lead at one of the logistics based company. |
||
contact: javatutorials2016[at]gmail[dot]com | |||
Kindly consider donating for maintaining this website. Thanks. |
|||
Copyright © 2020, javapedia.net, all rights reserved. privacy policy. ![]() |