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.
It is sorta covered in the
JavaRanch Style Guide
subject: K&B page 466 "method-local inner class"
Code for Method-Local Inner Classes not compiling
Method-local inner class and final local variable
where final variable reside ?
Doubts regarding Method Local Inner Class
Final variable access from class inside function
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014