Home > Back-end >  Beginner excuse me Daniel, Java anonymous classes must be final class, as long as the answer results
Beginner excuse me Daniel, Java anonymous classes must be final class, as long as the answer results

Time:09-21

Beginner excuse me Daniel, Java anonymous classes must be final class

CodePudding user response:

So long as the answer,

CodePudding user response:

A true or false, I as long as the answer

CodePudding user response:

Right or wrong?

CodePudding user response:

The
reference 3 floor Zhao Tao response:
right or wrong?


Fanil class can not be rewritten or override, think it is impossible,

CodePudding user response:

reference 4 floor qq_39936465 response:
Quote: reference 3 floor Zhao Tao response:

Right or wrong?


Fanil class can not be rewritten or override, think it is impossible,

It's too late to reply. I have the wrong number

CodePudding user response:

The
reference 5 floor Zhao Tao response:
reply too late, I have been wrong


Don't you judge? Generally "must be", "must", 90% is wrong,

CodePudding user response:

refer to 6th floor qq_39936465 response:
Quote: refer to fifth floor Zhao Tao response:

It's too late to reply. I have been wrong


Don't you judge? Generally "must be", "must", it is wrong to 90%,

The answer is right,,,, it must be a final class

CodePudding user response:

Yes,,,,,,,,,,,,,,,,

CodePudding user response:

The
reference 7 floor Zhao Tao response:
answer is right,,,, it must be a final class


Anonymous class reference parameters must be final type this I can understand, one-time use of an anonymous class why must be a final class, I am a little don't understand,

CodePudding user response:

references 9 f qq_39936465 response:
Quote: refer to 7th floor Zhao Tao response:

The answer is right,,,, it must be a final class


Anonymous class reference parameters must be final type this I can understand, one-time use of an anonymous class why must be a final class, I'm a little don't understand.

I guess an anonymous inner Class compiled will generate a Class file, if thermal load is a Class to inherit it, in order to avoid some unnecessary trouble
  • Related