0
Why 4?
Why answer is 4 instead of 16?
3 Respostas
0
because 4 instead of 16
too easy
non mais allo quoi
0
Because...
when the code is compiled JVM looks at main method first and x was already defined as 4 and in square method new variable x was again created in its parameter whose value is 4 and System.out.println does it work afterwards. Method doesn't execute at all.