Given the code, is Cart a checked or unchecked exception? Is…

Given the code, is Cart a checked or unchecked exception? Is Screen a checked or unchecked exception? Cart : [Item1] Screen : [Item2] class Cart extends RuntimeException {     public Cart(String msg) {          super(msg);      }  }  class Screen extends Exception {     public Screen(String msg) {          super(msg);      }  }

Given the code below, what will be the value returned from t…

Given the code below, what will be the value returned from the method invocation shown? public static int mystery(int num1, int num2) {   if (num1 == 1 || num2 < 1) {        return 1;    } else {       return num1 + mystery(num1 * 2, num2 - 2);    }} int value = mystery(2, 8);