Java | Operators | Question 4

Last Updated :
Discuss
Comments
Java
class Test {
    public static void main(String args[])  {
       System.out.println(10*20 + "GeeksQuiz");
       System.out.println("GeeksQuiz" + 10*20);
   } 
}

Predict the output of following Java program.

10*20GeeksQuiz
GeeksQuiz10*20
200GeeksQuiz
GeeksQuiz200
200GeeksQuiz
GeeksQuiz10*20
1020GeeksQuiz
GeeksQuiz220
Share your thoughts in the comments