public class Exam extends HttpServlet {
public void init() { findRoom(); buyWater(); } private void findRoom() { search(Buildings.ONE_WHICH_LOOKS_LIKE_WAGYL_THREW_UP_ON_IT); try { regardArchitecture(); } catch (VomitException e) { shrug(); } } private void buyWater() { try { Machine.insert(0.20); } catch (MachineSwallowedCoinWithoutReasonAgainException e) { System.err.println(Person.SWEAR); } } public void doGet(HttpServletRequest req, HttpServletResponse resp) { readExamPaper(); winceAtPoorlyWrittenQuestions(); } public void doPost(HttpServletRequest req, HttpServletResponse resp) { writeResponses(); makeJoke(Lotus.NOTES); finish(); } public void doDelete(HttpServletRequest req, HttpServletResponse resp) { leaveCampus(); forgetEverything(java.lang); $var = ... oh, shit; } }
I enjoyed the exam about as much as the rest of the unit (that is, not at all), but I’m pretty sure I did enough to pass. I must remember to read sample exams more closely, though — I was completely broadsided by the 15 mark question on Java GUI construction in a unit supposedly about building Java-powered Web sites. Obviously applets are back in vogue.
Now for the nervous wait for results in about six weeks.