Ques 1: Can an anonymous class be a subclass of another class? (i.e Can an anonymous class uses extends keyword?) If yes, can this be possible? new Interfacename() extends Otherclass{
Ques 2: Can an anonymous class implement an Interface? (i.e Can an anonymous class uses implements keyword?) Ques 3: Eventhough i'm clear with the Collection,Map,Set,List I could not get the correct answer as i was misleaded by the question. Q1: without ordering,duplication or perfect retrival mechanism Q2: without ordering,duplication and perfect retrival mechanism what are the answers for these q's and how to find it out?