aspose file tools
The moose likes Beginning Java and the fly likes Static and Nested Classes ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Static and Nested Classes ???" Watch "Static and Nested Classes ???" New topic
Author

Static and Nested Classes ???

Cecil Phillip
Ranch Hand

Joined: Nov 05, 2001
Posts: 40
Why do I get an error on Graph and not on Graph3 when i compile this ?

Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341
An inner class cannot contain static members unless they are compile-time constants.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Static and Nested Classes ???
 
Similar Threads
reflection of static inner classes
top level nested interfaces
Inner class
Static class??
Inner Interfaces vs Nested Interfaces