Jim Venolia wrote:Is it possible to declare a class within a class?
Seems stupid to have a Bar.java for this silly little Bar class that is only used twice (when creating the list, and when printing it), and is only needed in the Foo class.
AhFai Chan wrote:Who pays for the Oracle JRE, the developer or the end-user?
Surely the end-user has the choice to use another JRE !?!
Kirk James wrote:I was just talking about the Spring IOC container that manages the bean instances and that cannot work with static elements.
Kirk James wrote:Injecting static fields looks like a wrong usage of an OOP pattern (dependency injection), also static fields belong to a Class, not to an Object;
Dave Tolls wrote:I've only ever seen that with third party things where a jar file is missing or of the wrong version.
Junilu Lacar wrote:Generally, I try to avoid temporary, single-use variables. The exception is that if it can help me isolate and explain a complex calculation.
Hari Nagarjuna wrote:but I have seen that string is basically an object that represents sequence of char values...