Hi All,
I recently appeared for an interview for a multinational and came across questions like
- What are the new features of JDK5?
- What are the advantages of using Enums?
- Why would you use Serializable?
- What are the concrete implementations of the List interface? I missed LinkedList.
...and a few other fact based questions followed...
I had a tiff with the interviewer on implementation of the Singleton Pattern, where he insisted that a synchronized block must be used(I used the SingletonHolder)....
I did not clear it, but was shocked because at my level of experience(close to 8) and based on the Job Description, I was not asked questions on OOPS or UML or asked to write a piece of code or even review a piece of code for refactoring and optimization...I was expecting questions which would cover a broader base and was expecting a discussion and a simulating interaction with the interviewer instead of a bland set of trivia....
My Question: Are my expectations reasonable or do I need to change my expectations and accept that this is how it is...and memorize trivia....I apparently am very bad at it..
Regards, SB
Added 06th Jan, 2010
Thanks a lot for all the opinions....it certainly makes me feel better....but I figure that I need a bit of memorizing, unless I am really lucky.... ;)