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

How to find the largest value from the given array.

618


Does unicode support all languages?

645


Is sizeof a keyword in java programming?

722


What is data type in java?

575


What are the benefits of operations in java?

589






Can we use return in constructor?

573


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

654


Is ++ operator is thread safe in java?

604


How can you share data between two thread in Java?

607


What are different access specifiers in java?

651


What is java object name?

639


What is the need of transient variables in Java ?

681


What is the difference between abstract class and interface1? What is an interface?

658


Explain about the main() method in java?

688


Write a java program to count the number of words present in a string?

610