1.

Find output of the following Java code snippet : String City = "Delhi" ,PinCode="110001", Str=" " ;City=City+" "+PinCode ; JOptionPane.showMessageDialog(null,City) ; int l=City.length ( ) ; int i=0 ; while (i<1){Str=Str+City.substring (6) ; i = i +15 ; } JOptionPane.showMessageDialog (null.Str) ;

Answer»

Output 

Delhi 110001 10001



Discussion

No Comment Found

Related InterviewSolutions