Computer Science, asked by jananivels, 7 months ago

What will be the result, if we try to compile and execute the following code? class Test { static int x; public static void main(String [ ] args) { System.out.println(x); } }​

Answers

Answered by IamGenesis
0

Answer:

0

Explanation:

as x is a global variable, it's value is auto initialised to the default value which is 0 for Integers

Similar questions