Multiple Choice
What will be displayed after the following statements are executed?
String str = "red$green&blue#orange";
String[] tokens = str.split("[$]") ;
For (String s : tokens)
System.out.print(s + " ") ;
A) red green blue orange
B) Red $ green & blue # orange
C) $ & #
D) red [$] green [$] blue [$] orange
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Which of the following import statements is
Q10: Any _ argument passed to the Character
Q26: What will be displayed after the following
Q28: For the following code, how many times
Q29: What will be displayed after the following
Q30: You will cause an off-by-one error, when
Q33: In the _ file format, when the
Q39: Which of the following statements will display
Q47: You cannot assign a value to a
Q54: The Character wrapper class provides numerous methods