choose stringbuffer or stringbuilder

Three More Questions for You

1. Why Java introduced StringBuilder with the same functionality (usage) of StringBuffer? 2. Why split() method was introduced when Java has already StringTokenizer?Ans: StringTokenizer comes with JDK1.0 version where as split() method comes with JDK1.4 version. StringTokenizer beongs to java.util package and split() is defined in String class of java.lang…