SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Abhishek Madhusudhan wrote:3 years and yet no satisfactory reply for this question
Abhishek Madhusudhan wrote:
1. It might be that there might be an error in SCJP book. (As according to the book only if the variable is declared final then the method should be able to access else it should show an compile time error).
2. There might be something to do with compiler version that i may not be aware of ??
Abhishek Madhusudhan wrote:3 years and yet no satisfactory reply for this question
Abhishek Madhusudhan wrote:
tell me what exactly do you mean by effectively final and not actually declared final, i don't want to hijack the thread but have one more question here
Abhishek Madhusudhan wrote:
In Anonymous Inner classes - method based - declared in argument - whats the use of declaring the class apart from passing an instance of interface to just make the method( which accepts an instance of interface )to be executed or in short, what's the use of argument based anonymous inner class.
Abhishek Madhusudhan wrote:
this is what i meant but i don't get as to where exactly this is going to come in handy though i wrote this example myself :P
Consider Paul's rocket mass heater. |