What are init(), start() methods and whey they are called?

Answer Posted / sumit bansal

init() this method belog to servlet and is executed when
the container loads the servlet first time.

start() method belongs to thread and is called by
programmer to start the thread.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What programs use java?

460


Can we synchronize static methods in java?

587


What are the super most classes for all the streams?

1153


What is the use of :: in java?

555


What is an exception? difference between Checked and Unchecked exception in Java

544






Can we increase size of array?

555


How do you end a program?

534


Is linkedlist thread safe in java?

548


What is a numeric literal?

513


Is string is a keyword in java?

536


What is final keyword in java?

541


How does indexof work?

492


What technique is carried out to find out if a particular string is empty?

553


For class CFoo { }; what default methods will the compiler generate for you>?

602


Explain different types of thread priorities ?

608