What is the result?
A.
John-.-George-.-Paul-.-Ringo
B.
John
George
Paul
Ringo
C.
John -George -Paul -Ringo -D. An exception is thrown at runtime
E.
Compilation fails
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
B
B