Engineering Full Stack Apps with Java and JavaScript
Which line in the following code will cause the compilation to fail?
public class TestClass { public static void main(String[] args) throws Exception { work(); //LINE 10 int j = j1; //LINE 11 int j1 = (double) x; //LINE 12 } public static void work() throws Exception{ System.out.println(x); //LINE 15 } static double x; //19 }
Select 1 option
A. Line 10
B. Line 11
C. Line 12
D. Line 15
E. Line 19