5 years ago in Java Operators

What is the output of the program.
class operators {

public static void main(String args[])

{

int x = 8;

System.out.println(++x * 3 + "," + x);

}

}

[A] 24,8
[B] 24,9
[C] 27,8
[D] 27,9
Loading...
Next Question

Overall Stats

Attempted 314
Correct 86
Incorrect 104
Viewed 124

Answers

Guest
Guest
nikunj jhala
nikunj jhala - 2 weeks ago

nikunj jhala from Mumbai, India is saying 27,9 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying 24,9 is correct answer

Cos Sinus
Cos Sinus - 1 month ago

Cos Sinus from Casablanca, Morocco is saying 27,9 is correct answer

HD
HD - 1 month ago

HD from Kenitra, Morocco is saying 27,9 is correct answer

Awa Kone
Awa Kone - 1 month ago

Awa Kone from Berrechid, Morocco is saying 27,9 is correct answer

Related Questions

Which of the following can be operands of arithmetic operators?

  • [A] Numeric
  • [B] Boolean
  • [C] Characters
  • [D] Both Boolean & Characters

Modulus operator, %, can be applied to which of these?

  • [A] Integers
  • [B] Floating – point numbers
  • [C] Both Integers and floating – point numbers
  • [D] None of the mentioned