Programming Language String in Java Question #2222
Single Choice Not Set

QWhat 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); 
	} 
}

ID: #2222 String in Java 1,388 views
Question Info
#2222Q ID
Not SetDifficulty
String in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A abc
  • B 123
  • C Runtime exception thrown
  • D Compilation error
Correct Answer

Explanation

abc

Share This Question

Challenge a friend or share with your study group.