ICSE Class 9 Computer Applications Question 19 of 21

Operators in Java — Question 19

Back to all questions
19
Question

Question 19

Determine the output of the following program.

public class PredictOutput1
{
  public static void main(String args[])
  {
       int a = 4, b = 2, c = 3;
       System.out.println("Output 1: " + (a = b * c));
       System.out.println("Output 2: " + (a = (b * c)));
  }
}
Answer