1. Engineering
  2. Computer Science
  3. 7 what will be the output of the following java...

Question: 7 what will be the output of the following java...

Question details

7) What will be the output of the following Java code snippet? class Base static int x = 100; static x = ++x + --x; class Derived extends Base static xx-+xi x = x++ - ++x; Derived b1 = new Derived(); Print bl.x a. 100 b. 0 c.-2

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution