Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started