

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output?public class Test{public static void main (String[] args){String test = "a1b2c3";String[] tokens = test.split("\\d");for(String s: tokens)System.out.print(s);}} |
A. | bc |
B. | 23 |
C. | untime exception thrown |
D. | ompilation error |
Answer» B. 23 | |