Dev Cafe

Tuesday, July 25, 2006

Few Interview Questions.

I just got a mail from one of the job consultant. Which contained a Job opening and a set of screening questions. This is the first of such kind I have got till date. In IT field, I know when people seeking job in thier friend or friend's friend organzations enquiring about the kind of questions and area of concenration for the current opening. But consultant listing out the list of screening questions, reminded me of one of Srini's blog " Trespassers will be recruited". Any way, the good thing in that mail was the questions. I thought I would post it with answers for them.

1. True or False - JSP can be precompiled into a jar file
Answer – True.

2. In a web application protected resources can be differentiated from unprotected ones at deploy time by
a. defining servlet mapping
b. setting security constraint
c. with use of filters
d. all of the above
e. none of the above
Answer – B – Check this URL for more information.

3. Servlet Filters are designed based on which J2EE pattern
a. Business Delegate
b. Front Controller
c. Intercepting Filter
d. Fits into all above patterns
Answer c. Intercepting filter

4. Use of persistence layer (such as Hibernate) is most appropriate betweena. Business delegate and data access objectb. Data access object and databasec. Can be used only directly with a databased. Can be used only instead of a database
Answer b. Data access object and database

5. Link table in a database schema is necessary to
a. resolve one to many relations
b. achieve 3rd normal form
c. resolve many to many
d. all of the above
Answer d. All of the above

6. Does garbage collector directly impact a heap or a stack?
Answer - Heap URL

7. Uncaught errors cause compile errors – True and False
Answer - False - Errors are caused at Runtime.

8. Which of these data structures does not extend collection interface
a. List
b. Map
c. Set
d. None of the above
Answer B.Map

9. These types of instance fields are not serialized
a. volatile
b. static
c. final
d. transient
Answer d.transient

New car or Old Car?
It was 3 months of thinking wether to buy a new car or a old car when at last I decided to buy the new car. When I first landed in US 8 months ago, I was thinking I wouldnt spend more than $ 10K for a car. I started to search cars in the internet that I would get for 10K or less. Most of them had 50k miles or more on them (I had decided to buy Camry When I drove Corolla. It may sound weird, but with the smoothness of corolla ensured that camry would be much more smoother ). When I asked one my friend who bought an old Lexus for $ 5k which had 90K miles on it. It was luring me to go in the same path. But he said, he had put $ 6k within a year to fix couple of issues. Wow! so he has already spent 11k on it. Calculating the resale value I figured out that buying new car would cost $ 3K more than old car under the assumption you wouldnt have any problems with your old one. By buying new car, you have peace of mind, since you have 3 year bumper to bumper warranty.

Monday, July 24, 2006


I am new to blogging so, I thought I would start blogging with my new car which I bought yesterday. Here is the new Car I bought Camry 2007.