Describe the observed behavior below. (pick one)            …

Describe the observed behavior below. (pick one)               public static void main(String[] args) {                                         foo1();               }               public static void foo1()  {                              try {                                            throw new RuntimeException();                              } finally {                              }               } Compiler error Runtime error No error – prints nothing  

Describe the observed behavior below. (pick one)            …

Describe the observed behavior below. (pick one)               public static void main(String[] args) {                                        foo1();               }               public static void foo1()  {                              throw new RuntimeException();               } Compiler error Runtime error No error – prints nothing

       Describe the observed behavior below (pick one).     …

       Describe the observed behavior below (pick one).        public static void main(String[] args) {                                         foo1();               }               public static void foo1()  {                              throw new Exception();               } Compiler error Runtime error No error – prints nothing

Given the function find() which is implemented based on Spec…

Given the function find() which is implemented based on Spec1. Could find() be reimplemented based on Spec2? If yes, explain why. If no, explain why not.   int find(int[] a, int val)    Spec1:   requires: val occurs exactly once in a   effects:  returns lowest index i such that a[i] = val   Spec2:   requires: val occurs at least once in a                     effects:   returns index i such that a[i] = val