Consider the following piece of code byte x = 0; x += 1;

  1. Results in x having the value 1.

  2. Causes a compiler error.

  3. Will require a cast (byte) before 1.

  4. Will give syntax error.


Correct Option: A

Find more quizzes: