This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.

There is another way to simulate static abstract methods. That is to declare an static method on the abstract super class that invokes an exception. Then override the static method on the subclasses. Then when you want to access the subclass method, use reflection to access the static method(eg. Class mccClass = this.getClass();Method method0 = mccClass.getMethod("staticMethod", new Class[0]);strPrimaryTable = (String) method0.invoke(null, new Object[0]);