pair[ new pair[ ]/rightbut gives warning pair[ new pair[ ]/wrong [ new pair()/this is completely right [ set("dog", )/this and the next statement are right too system out println("first pair is "+ [ getkey()+""+ [ getvalue()) exercises for source code and help with exercisesplease visit java datastructures net reinforcement - can two interfaces extend each otherwhy or why notr- give three examples of life-critical software applications - give an example of software application where adaptability can mean the difference between prolonged sales lifetime and bankruptcy - describe component from text-editor gui (other than an "editmenuand the methods that it encapsulates - draw class inheritance diagram for the following set of classes