Please, answer the course questionnaire on the web pages of the departmen
(6 points)
class Pair <T> { public T first; public T second; public Pair (T f, T s) { first = f; second = s; } public Pair () { first = null; second = null; } }Is Pair <String> a subclass of Pair <Object>. Explain why; or, if not, explain why not. Is an array of type String [ ] also of type Object [ ]? Explain why; or, if not, explain why not. Is an array of type Pair <String> [ ] also of type Pair <Object> [ ]? Explain why; or, if not, explain why not.
(12 points)
void run () { try { while (! interrupted () && hasMoreWork) ... // may block and throw.. } catch (InterruptedException e) ... // interrupted during sleep or wait ... finally ... // cleanup in any case }Explain what it is and why you have to check the interrupting by two different ways.
(12 points)