Some servlet calls JSP and in JSP will initialize a servlet this wayServlet1 s=new Servlet1();s.doPost(request,response);and this in turn calls a jsp and this JSP calls another Servlet what will be the output?
Answer posted by pravash on 2005-06-08 02:16:34: The PreparedStatement is a slightly more powerful version of a Statement, and should always be at least as quick and easy to handle as a Statement. The
Latest Answer : The PreparedStatement is a slightly more powerful version of a Statement, and should always be at least as quick and easy to handle as a Statement. The PreparedStatement may be parametrizednull Most relational databases handles a JDBC ...
Latest Answer : Object has physical existance and class doesn't have physical existance .Object is an instance of the class and class is templete for the object ...
Latest Answer : Serialization is the process of storing the state of an object into IO Stream, it is a Marker interface and it will not have any methods in it. ...
How will u declare a synchronized block? What does this represent in the Declaration of synchronized block?
Latest Answer : Definitely. That is actually the prefer way to make your client code more flexible and easier to maintain.For example, in a gaming program, you have:Breakable b = Factory.createObject();b.performBreak();It doesn't matter what concret Obejct Factory.createObect() ...
Latest Answer : Servlet chaining is a technique in which two or more servlets can cooperate in servicing a single request. In servlet chaining, one servlet's output is piped to the next servlet's input. This process continues until the last servlet is reached. ...
If we can access a sevlet through both GET and POST methods then which methods will u declare in the servlet class?
Class A{Public void meth(){}}class B extends A{ Public void meth(){ } public static void main(String args[]){ A a=new A(); a.meth();//which method will this call } }if u want to call a method of class B then how can u achieve this?