Multiple Choice
What will be the tokens for the following code?
String str = "123-456-7890";
String[] tokens = str.split("-") ;
A) 123, 456, and 7890
B) -
C) 123, 456, 7890, and -
D) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q25: If a non-letter is passed to the
Q32: Each of the numeric wrapper classes has
Q47: What does the following statement do?<br>Double number
Q48: What will be the value of loc
Q49: What is term used for a class
Q53: You must call a method to get
Q54: When using the StringBuilder class's insert method,
Q55: What will be the value of str
Q56: StringBuilder objects are immutable.
Q57: If str is declared as: String str