Given a part of code tell the output(Assume that the code is perfect ie no compiler error or runtime exceptions) Pattern p=Pattern.compile("\d+"); Matcher m=p.matcher("345678"); while(m.find()) { System.out.print("-"+m.group()+"-"); }
Reveal answer
Fill a bubble to check yourself