Look at the following code. Which line will cause a compiler…

Look at the following code. Which line will cause a compiler error? Explain why.Line 1 public class ClassALine 2 {Line 3   public ClassA() {}Line 4   public final int method1(int a){}Line 5   public double method2(int b){}Line 6 }Line 7 public class ClassB extends ClassALine 8 {Line 9   public ClassB(){}Line 10  public int method1(int b){}Line 11  public double method2(double c){}Line 12 }       

Consider the following two classes:public class Book { publi…

Consider the following two classes:public class Book { public String getISBN() { // implementation not shown } // constructors, fields, and other methods not shown } public class Dictionary extends Book { public String getDefinition(String word) { // implementation not shown } // constructors, fields, and methods not shown } And assuming that the following variable has been declared in a client class. Book b = new Dictionary(); 1. What is the output or result from the following statement?        System.out.println(b.getISBN()); 2. What is the output or result from the following statement?      System.out.println(b.getDefinition(“wonderful”));

Answer the following short coding question. Do NOT write fun…

Answer the following short coding question. Do NOT write functions and do NOT hardcode.  Given a text file called capedCrusader.txt, output the sum of the number of words in the file plus the number of lines. Store the answer in a variable called num.     Example:   capedCrusader.txt:  Not the hero we deserved,  but the hero we needed.    >> num =          12    Notes:   capedCrusader.txt can be longer than 2 lines so do NOT hardcode.  Characters separated by spaces should be counted as words.  You may ignore other punctuations besides spaces.    Answer this question by typing your code in the space provided below.

(a) Fill in the contingency table below. Year Speeding Ti…

(a) Fill in the contingency table below. Year Speeding Tickets Parking Tickets Total 2019 15 [69] 84 2020 [8] 7 15 Total 23 [76] [99] Find the following probabilities. Leave as a fraction. No decimals! For example, if your solution is type 3/22. (b) P(Parking Ticket) = [b] (c) P(2020 and Speeding Ticket) = [c] (d) What is the probability of a parking ticket given it was is 2019? [d]