Oracle
1Z0-804 · Question #40
Given: What is the result?
The correct answer is B. John. The split() method is used to split a string into an array of substrings, and returns the new array. regex: - followed by two characters
String Processing
Question
Given:
What is the result?
Exhibit
Options
- AJohn-.-George-.-Paul-.-Ringo
- BJohn
- CJohn -
- DAn exception is thrown at runtime
- ECompilation fails
How the community answered
(42 responses)- A2% (1)
- B83% (35)
- C10% (4)
- D5% (2)
Explanation
The split() method is used to split a string into an array of substrings, and returns the new array. regex: - followed by two characters
Topics
#String.split#limit parameter#delimiter#regex
Community Discussion
No community discussion yet for this question.
