Home / MCQ Bank / Computer
Computer Strings Difficulty: Medium

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

Select the correct option to test your answer:

More Computer Questions

Math.random() returns . . . . . . . . What is the advantage of using 2D jagged array over 2D rectangular array? What does the term "immutability" refer to in Ruby? The maximum non zero value for FLOAT is . . . . . . . . What will be the output of the following PHP code ? &lt?php $a = "1" ; switch ( $a ) { case 1 : break ; print "hi" ; case 2 : print "hello" ; break ; default : print "hi1" ; } ?>