Geometric mySquare = new Square();  Given the class hiera…

   Geometric mySquare = new Square();  Given the class hierarchy and code statement above, which of the following methods are allowed and are not allowed to be called on the mySquare variable? perimeter() : [1]describe() : [2] For each statement below, indicate which class provides the implementation of each of the methods called. mySquare.draw();    [3]mySquare.toString(); [4]

Given the code below, what gets printed? Assume that Hello i…

Given the code below, what gets printed? Assume that Hello inherits from an appropriate exception class. It is recommended that you trace this on scratch paper and look for your answer in the choices provided. public class Driver {     public static void main(String[] args) {         Hello helloException = new Hello(“Hello Thrown”);         try {           throw helloException;        } catch (Hello h) {            System.out.println(h.getMessage());         } catch (Exception e) {             System.out.println(“Exception Thrown”);         } finally {             System.out.println(“Is this printed?”);         }     } } 

Given the code below, what gets printed? Assume that Locatio…

Given the code below, what gets printed? Assume that Location inherits from an appropriate exception class. It is recommended that you trace this on scratch paper and look for your answer in the choices provided. public class Tester {     public static void main(String[] args) {        Location locException = new Location(“Location Thrown”);         try {           throw locException;       } catch (Location f) {             System.out.println(f.getMessage());         } catch (Exception e) {             System.out.println(“Exception Thrown”);         } finally {             System.out.println(“Is this printed?”);         }     } }