The following code may produce an Arithmetic Excpetion if c…

The following code may produce an Arithmetic Excpetion if c = 0:   public int divide(int b, int c){     int a = b / c;     return a;}   Select ALL code below that can solve this divide by zero problem (note, in the case of a divide by 0, the code may either return 0 or pass on the exception).

Consider the Interface Bar and use it to answer the followin…

Consider the Interface Bar and use it to answer the following questions:   public interface Bar{     public abstract double fun1(double a);     public abstract double fun2(double a, double b);}     True or False: If an Anonymous Class were to be created from Bar, AT LEAST one of the abstract methods in Bar need to be defined for the the Anonymous Class to be valid (i.e., you may define both methods, but ONLY one method is REQUIRED to be defined).