We have started a new series of publishing new questions each day. So go and crack them .....

Date: 28 Feb '06
  1. Can we make an EJB singleton?   [Answer]
  2. Why is _jspService() method starting with an '_' while other life cycle methods do not?   [Answer]
Date: 27 Feb '06
  1. Why Thread is faster compare to process?   [Answer]
  2. What happens when a page is statically included in another JSP page?   [Answer]
Date: 26 Feb '06
  1. Explain the life cycle of JSP   [Answer]
  2. What is the difference between callling a RequestDispatcher using ServletRequest and ServletContext?   [Answer]
Date: 25 Feb '06
  1. What are the different types of inner classes?   [Answer]
  2. How is JSP include directive different from JSP include action.   [Answer]
Date: 24 Feb '06
  1. In which case would you choose a static inner class?   [Answer]
  2. When and How is an object considered as Garbage by a GC?   [Answer]
Date: 23 Feb '06
  1. Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?   [Answer]
  2. Can you do browser redirects from the portlet?   [Answer]
Date: 22 Feb '06
  1. When we don't write any constructor for the servlet, how does container create an instance of servlet?   [Answer]
  2. What is the difference between HTTPRequest and PortletRequest?   [Answer]
Date: 21 Feb '06
  1. How is static Synchronization different form non-static synchronization?   [Answer]
  2. What is the differnce between final, finally and finalize?   [Answer]
Date: 20 Feb '06
  1. A JSP page, include.jsp, has a instance variable "int a", now this page is statically included in another JSP page, index.jsp, which has a instance variable "int a" declared. What happens when the index.jsp page is requested by the client?   [Answer]
  2. Can we force Garbage collection?   [Answer]
Date: 19 Feb '06
  1. When and How is an object considered as Garbage by a GC?   [Answer]
  2. When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?   [Answer]
Date: 18 Feb '06
  1. What are ClassLoaders?   [Answer]
  2. What is a Throughput Collector?   [Answer]
Date: 17 Feb '06
  1. How can we make a class Singleton?   [Answer]
  2. Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?   [Answer]
Date: 16 Feb '06
  1. What similarities do Portlets share with servlets?   [Answer]
  2. What are ClassLoaders?   [Answer]
Date: 15 Feb '06
  1. When and How is an object considered as Garbage by a GC?   [Answer]
  2. Can we force Garbage collection?   [Answer]
Date: 14 Feb '06
  1. What are portlets?   [Answer]
  2. How are portlets different from Servlets?   [Answer]
Date: 13 Feb '06
  1. What is hot deployment?
  2. What is lazy instantiation?
Date: 12 Feb '06
  1. What do you mean by code review?
  2. What do you check for while you are reviewing some one's code?
Date: 11 Feb '06
  1. What are unit test cases?
  2. How can you make sure that the test cases you have identified are exhaustive?
Date: 10 Feb '06
  1. Given a usecase how do you estimate the effort required to complete it?
  2. Given a requirement how do you know that the usecases you identified are suffient?
Date: 09 Feb '06
  1. What are usecases?
  2. How do you identify a usecase from the given requirements?
Date: 08 Feb '06
  1. Can we implement an interface in a JSP? If yes how? and No then why not?
  2. What is the difference between System.exit(0) and System.exit(1)?
Date: 07 Feb '06
  1. What are the precautions you need to take before including a JSP page into another JSP page so that there are no compilation problems?
  2. How do you decide wether to write an Abstract Class or an Interface?
Date: 06 Feb '06
  1. How can you synchronize an ArrayList and return the same from a method without using Vector or Hashtable anywhere?
  2. Can two servlets running on two different applications(but within a single container) share information with each other?
Date: 05 Feb '06
  1. If two objects return the same hashCode value are they equal according to the equals method's implementation?
  2. How would you write and where would you place a singleton class which has to be shared by two different servlets from different applications running in a single container?
Date: 03 Feb '06
  1. What is the Difference between a Green thread and a Native Thread?
  2. What is the Difference between Deep Copy and Shallow Copy?
Click Here to view Archives(Previous questions)
Post your Resumes
HERE
Join javaquestions Group
Google
Email your answers to Interview Questions

The Advertising Network

Disclaimers: No claims are made about the accuracy of any of the document presented in this site and no responsibility is taken for any errors. All the links provided in this site are individual compilation, however no claims are made about the accuracy and authenticity of the respective contents.