Q-1)class ABC extends HttpServlert
{
AnyClass obj;
public void init()
{
Classboject obj=new Classboject();
}
}
Q-2)class ABC extends HttpServlet
{
public void get(HttpServletRequest req,HttpServletRequest res)
{
/*html required tags and session creation*/
synchronized(session)//any seesion created before
{
<form method=post>
inputtype=text name=one
inputtype=text name=two
</form>
}
public void post(HttpServletRequest req,HttpServletRequest res)
{
}
}
Q-1 IS OBJ IS SYNCHRONIZED.T/F
Q-2 IN Q-2 WHEN CALLING POST METHOD IN THE SAME CLASS THEN IT IS IT AUTOMATICALLY
THREAD SAVE
T/F
Q-3 IN Q-2 if <form action=gotooherservlet method=post> i.e go to oher page then is that post method will be ThreadSafe
T/F
}