I think the answer is a,b. In Option b, It may like this:
class Super{
Super(int i){}
}
class Base{
void createAnonymous(){
new Super(5){};
}
}
Am i right?
Q1. Anonymous class can not have constructor as they do not have names. So how is option b correct?
Q2. Anonymous classes are defined and instanciated in a context where a reference can be used. Would it make more sense to change the code a bit...
Thanks
Barkat