Writing an object of base class should do the needful..
Type: Posts; User: payalBansal
Writing an object of base class should do the needful..
class A{
public static synchronized void main(String args[]){
Thread t= new Thread();
t.start();
System.out.println("hi");
t.wait(1000);
System.out.println("hello");
}}
Class A{
Public static synchronized void main(String args[]){
Thread t= new thread();
t.start();
Sysout("hi");
t.wait(1000);
Sysout("hello");
}}
Why is HttpServlet serializable? Do we need to serialize the controllers in our web-application? Pros of it?