5 years ago in Java Operators

What is the output of this program?
class increment {

public static void main(String args[])

{

int g = 3;

System.out.print(++g * 8);

}

}

[A] 25
[B] 24
[C] 32
[D] 33
Loading...
Next Question

Overall Stats

Attempted 235
Correct 107
Incorrect 34
Viewed 94

Answers

Guest
Guest
JOHANNES GAVIN
JOHANNES GAVIN - 2 hours ago

JOHANNES GAVIN is saying 25 is correct answer

Umayal Nachiappan
Umayal Nachiappan - 3 weeks ago

Umayal Nachiappan from Chennai, India is saying 32 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 4 weeks ago

Vaibhav Bisht from Dehradun, India is saying 33 is correct answer

Cos Sinus
Cos Sinus - 4 weeks ago

Cos Sinus from Casablanca, Morocco is saying 32 is correct answer

Awa Kone
Awa Kone - 1 month ago

Awa Kone from Berrechid, Morocco is saying 24 is correct answer

Related Questions

Which of these statements are incorrect?

  • [A] Assignment operators are more efficiently implemented by Java run-time system than their equivalent long forms.
  • [B] Assignment operators run faster than their equivalent long forms
  • [C] Assignment operators can be used only with numeric and character data type
  • [D] None

Which of these statements are incorrect?

  • [A] The left shift operator, <<, shifts all of the bite in a value to the left specified number of times.
  • [B] The right shift operator, >>, shifts all of the bite in a value to the right specified number of times.
  • [C] The left shift operator can be used as an alternative to multiplying by 2.
  • [D] The right shift operator automatically fills the higher order bits with 0.

What is the order of precedence (highest to lowest) of following operators?
1. &
2. ^
3. ?:

  • [A] 1 -> 2 -> 3
  • [B] 2 -> 1 -> 3
  • [C] 3 -> 2 -> 1
  • [D] 2 -> 3 -> 1