Wednesday, May 14, 2014

What is the output for the below piece of Code? #2

Leave a Comment

Question:


class Simple{

 public static void main(String args[]){

   String s=50+30+"Sachin"+40+40;

   System.out.println(s);//80Sachin4040

 }

}

Output:

80Sachin4040

0 comments:

Post a Comment