Latest Answer : It is a process of ensuring that if two or more threads are using a shared resource then only one thread get access to that shared resource at a time.Synchronization contains empty implementation, so no method is used. ...
Latest Answer : Why not? We can override these two methods also. We can override init() method for connecting to the database or some other resources. The init() method called by the container only once ,when the servlet has been loaded into the memory. You can override ...
What is advantage of static methods in real time applications? When we use static methods and when we use final methods? Explain with a suitable example..
If a simple application is to be developed using Java, JSP, EJBs, Servlets, JDBC, XML in eclipse IDE What are the steps involved in it. Explain briefly step by step.
Explain the purpose of Marker Interface.When there is no methods in marker interface then what is the use of implementing it?
Latest Answer : Marker interfaces are also called "tag" interfaces since they tag all the derived classes into a category based on their purpose. For example, all classes that implement the Cloneable interface can be cloned (i.e., the clone() method can be ...