Important Java J2ee Interview Questions asked by CGI
Companies Interview Questions
- How do you declare a page as Error Page. What tag you include in a JSP page so that it goes to specified error page in case of an exception ?
- Difference between Include Directive & Include Tag ?
- Servlet is a java class. So, can there be a constructor in Servlet class or not ? Why ?
- What’s the difference between forward & include tags? What URL (absolute or relative) is used in RequestDispatcher forward?
- How to configure Data Source in WebSphere server ?
- Oracle Thin Driver comes under which type of Driver ?
- Is it possible to write methods in JSP ? If so, how ?
- Difference between JSP & Servlets ?
- Which type of EJB can use bean pooling ?
- How can you call an EJB from a JSP/Servlet ?
- Difference between Hashtable & HashMap ?
- By default, Hashtable is unordered. Then, how can you retrieve Hashtable elements in the same order as they are put inside?
- Explain Servelet life cycle ?
- How JSP handle runtime Exceptions?
- Why hibernate?, Why not JDBC?
- What is the importance of SessionFactory in Hibernate?
- Difference between merge() and Update() methods?
- What is Secondary level cache in hibernate?
- How to get the session object in jsp ?
- How to get the sessionfactory obj in hibernate ?
- What is the difference between exception and error?
- How to handle the runtime exception in jsp?
- Difference between method overloading and overriding ?
- Difference between java.util.date and java.sql.date ?
- What is the Difference between get() and load() in hibernate ?
- Difference between page and pagecontext in jsp ?
- What is the difference between doPost and doGet methods?
- What is application in jsp ?
- I have 1 to 100 elements in array unordered,one element missed find that one?
- Difference between equals() and hashcode()?images
- What is comparator ?
- We have equals() to compare two methods then why comparator again ?
- What is autowiring in spring ?
- We can get the container obj through Beanfactory and Applicationcontext what is the difference in both ?
- Difference between sting and string buffer class ?