Question: What is wrong with this code: public class A { { System.out.println(i); } int i = 10; } O A) Nothing, the code will run

What is wrong with this code: public class A { { System.out.println(i); } int i = 10; } O A) Nothing, the code will run properly. O B) Invalid use of a static initialization block. OC) Use of a field before it is defined. O D) Use of a method before it is defined
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
