bob wrote:

> No, it's not redundant.  There is something in Java called a *static 
> inner class*.
>

No, there is not.

>From the JLS:
"The static keyword may modify the declaration of a member type C within 
the body of a 
non-inner class or interface T. Its effect is to declare that C is not an 
inner class. "
and
"An *inner class* is a nested class that is not explicitly or implicitly 
declared static."
 
Note: the effect of 'static' is to declare that the nested class is *not* 
an inner class.


> It is basically a weird use of the word static.
>
> Please see this:
>
> http://docs.oracle.com/javase/tutorial/java/javaOO/nested.html
>

This does not support your claim. It correctly describes an "inner class" 
as a "non-static nested class".

The words "static" and "inner class" in Java are mutually exclusive.


-- 
Lew

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to