Skip to content
Related Articles
Open in App
Not now

Related Articles

Java | Operators | Question 4

Improve Article
Save Article
  • Difficulty Level : Hard
  • Last Updated : 28 Jun, 2021
Improve Article
Save Article




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


(A)

10*20GeeksQuiz
GeeksQuiz10*20

(B)

200GeeksQuiz
GeeksQuiz200

(C)

200GeeksQuiz
GeeksQuiz10*20

(D)

1020GeeksQuiz
GeeksQuiz220


Answer: (B)

Explanation: Precedence of * is more than +.

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!