Preskočiť na hlavný obsah

Príspevky

Zobrazujú sa príspevky z dátumu január, 2010

Java Exceptions Joke

A bunch of 17 year olds - ClassCast, IllegalArgument and ArrayOutOfBounds - decide to take their chances, and try to get served at the bar. The Bartender takes one look at them, and asks them for ID. ClassCast hands over his fake ID, IllegalArgument hands over his brother Throwable's ID, but ArrayOutOfBounds doesn't have any fake ID. The Bartender says "Sorry guys, you'll have to leave unless I can see some ID". ClassCast pleads with the barman "can't you just bend the rules for us?" and the barman says "Sorry, no Exceptions".