Tuesday, January 12, 2010

Interview Questions

Interview Questions

I have been on interview mode for past few weeks and attended some interviews. Here are some sample question asked by interviewers. I am posting only the questions, Google for best answers.

  1. Can I pass HTTPSession object to EJB?

  2. Explain some J2EE design patterns

  3. In struts, can we add some preprocessing code before action gets executed? (Request processor)

  4. Can I print a string in a program without using main method? (static block)

  5. How do you set up cluster in Websphere

  6. Can you explain struts life cycle?

  7. Are you exposed to Ajile methodology? Can you explain the cycle

  8. Do you have any experiences with Ajax

  9. Can you explain the life cycle of session beans?

  10. I have two tables with 10 and 2 rows, How many rows will select * from table1, tabl2 fetch
    (10?or 12 rows – hint cartesian – 10*2 rows)

  11. What is the difference between HashTable vs HashMap

  12. What is the difference between Vector and Arraylist

  13. What is synchronized block and where do you use it

  14. What is the difference between Union vs Join
    Answer: For Union the column name and datatypes must match. Union eliminates duplicate row

  15. What is the difference between interface and abstract

  16. difference between java & j2ee

  17. explain value object pattern & where do you use?

  18. Difference between ibatis & hibernate

  19. Difference between servlets and JSP