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.
Can I pass HTTPSession object to EJB?
Explain some J2EE design patterns
In struts, can we add some preprocessing code before action gets executed? (Request processor)
Can I print a string in a program without using main method? (static block)
How do you set up cluster in Websphere
Can you explain struts life cycle?
Are you exposed to Ajile methodology? Can you explain the cycle
Do you have any experiences with Ajax
Can you explain the life cycle of session beans?
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)What is the difference between HashTable vs HashMap
What is the difference between Vector and Arraylist
What is synchronized block and where do you use it
What is the difference between Union vs Join
Answer: For Union the column name and datatypes must match. Union eliminates duplicate rowWhat is the difference between interface and abstract
difference between java & j2ee
explain value object pattern & where do you use?
Difference between ibatis & hibernate
Difference between servlets and JSP