Q. Difference between enumeration and iterator.
A. Enumeration is a symbolic constant. Also used for the same purpose as an iterator some time in the previous century but I guess that's not relevant, so, symbolic constant. Final answer. An iterator allows you to traverse a collection.
Q. ThreadLocal?
This is where
Java shows its Visual Basic roots. Takes a non-thread-safe object (that would be everything and anything in Visual Basic) and creates a thread-safe box by binding a shared static object to a specific thread. Even though it is not thread-safe, each thread gets its own copy. Veebee afficianados call that creating an "apartment". Only one veebee programmer ever understood what the heck that actually meant.
Interview Tip: don't ask to
phone a friend or
ask the audience if you get a particularly difficult question
[ September 02, 2005: Message edited by: Rick O'Shay ]