Question: Given the following two classes, what will be the output of the Main class?

  1. Lines 1 and 2 generate compiler errors due to class name conflicts.
  2. "-123"
  3. It will throw an exception on line 5.
  4. "123"

Answer: The correct answer of the above question is Option D:"123"