Question: easy java questions Question 30 1 pts Consider the statement below: StringBuilder sb1- new StringBuilder(a toyota); Which of the following creates a String object with
easy java questions

Question 30 1 pts Consider the statement below: StringBuilder sb1- new StringBuilder("a toyota"); Which of the following creates a String object with the value "toy"? O String res- sb1.subStringl2, 5); O char destl] - new char sb1.length)]: sb1.getChars 2, 5, dest, 0); String res-new String(dest); o char destl] - new char sb1.length); dest sb1.getChars(2, 5); String res-new String(dest); O char destl] - new char sb1.length)]: dest sb1.getChars(0, 3); String res-new String(dest); Question 31 1 pts Consider the Java segment: String line1-new String(c 1+23") StringTokenizer tok - new StringTokenizerline1, delimArg); For the String line1 to have 4 tokens, delimArg should be: O String delimArg O String delimArg-"123" O String delimArg C+ O String delimArg-*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
