Showing posts with label interview questions. Show all posts
Showing posts with label interview questions. Show all posts

Saturday, January 13, 2007

dummy interview question

is this code:
A)
a1 = new SomeClass();
a2 = new SomeClass();

equivalent to:
B)
a1 = a2 = new SomeClass();

??
(explain why)

The trick is how you ask the question, if you asked "what's the difference between option a and option b?" you are already telling them there is a difference.