JDBCSupport - An easy to use, light-weight JDBC framework -
The advantage of a static nested class is that it doesn't need an object of the containing class to work. This can help you to reduce the number of objects your application creates at runtime.
and if the static inner class object can exist independent of outer class then why not have a seperate class whose object can be created independently ???
JDBCSupport - An easy to use, light-weight JDBC framework -
shukla raghav wrote:i understand there is very limited use of static nested classes but then how does it save creation of unnecessary objects i am still not understanding.
Campbell Ritchie wrote:I would add public and private