A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
K&B page 466 "method-local inner class"
Joined: Aug 24, 2003
Oct 02, 2003 13:19:00
On page 466, it is stated that "The only modifiers you can apply to a method-local inner class are abstract and final."
Consider the following example:
x = "Outer2";
final int a = 10;
strictfp class Inner2
Inner2 i = new Inner2();
It seems strictfp can also be applied to a method-local inner class.
Am I missing something?
Joined: Aug 25, 2003
Oct 02, 2003 13:44:00
strictfp is not mentioned as causing a compile error modifier.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: K&B page 466 "method-local inner class"
Method-local inner class and final local variable
Doubts regarding Method Local Inner Class
Final variable access from class inside function
Code for Method-Local Inner Classes not compiling
where final variable reside ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013