22nd March 2002
int x = 2+2;
Integer myInt = new Integer((new Integer(2)).intValue() + (new Integer(2)).intValue());
final Integer theInteger = IntegerFactory.newInstance(2).add(IntegerFactory.newInstance(2));
IntegerFactoryFactory myIntegerFactoryFactory = new IntegerFactoryFactoryFactory.getInstance(); IntegerFactory firstIntegerFactory = myIntegerFactoryFactory.getInstance(); IntegerFactory secondIntegerFactory = myIntegerFactoryFactory.getInstance(); public static final transient volatile Integer theSumOfTwoAndTwo = functionFactory.makeFunction(functionFactory.ADDITION).apply( firstIntegerFactory.getInstance(2), secondIntegerFactory.getInstance(2)); firstIntegerFactory.callFinalizationMethod(); secondIntegerFactory.callFinalizationMethod(); myIntegerFactoryFactory.releaseResources();
(Contributed by Ken Williams <ken@seatbooker.net>)
int x = 4;
(And I haven't even mentioned the Java Enterprise programmer, who does all this using threads, observers and - no doubt, XML/XSL.)
Andrew Eland sent me a link to a most wonderful tutorial on different programming styles, Understanding Object Oriented Programming at http://csis.pace.edu/~bergin/patterns/ppoop.html It's very much in the same spirit as this page, with the key difference that, so far as I can tell, these guys are serious.