If you accidentally write a program that has an infinite (ne…

If you accidentally write a program that has an infinite (never ending) loop, such as the one below, your computer will become completely unusable since the loop will spin out of control and use 100% of your processor, blocking other processes including the operating system from running.   while(1 == 1){    console.log(“Just keep on printing!”);}

Given each of the 2 subtyping scenarios below, should the co…

Given each of the 2 subtyping scenarios below, should the code compile? In other words, would the given subtyping still satisfy a client code that uses the supertype? You should answer “Yes” or “No”, then support your answer (in the context of a client code that uses the supertype).   class A {    public Iterator merge(Iterator itr) throws Exception { … } } class B {    public Iterator merge(Iterator itr)  throws RuntimeException { … } }                                                                 B extends A.   A extends B.