where do we use init()

Answer Posted / yashwant

init() func is not only used in applets but it also used in
Servlet to initialized Servlet Program(Configured Servlet)
init()Called only once during the initialization of the Servlet.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hashmap in java?

562


Can we write a class without main method in java?

482


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

535


What is the purpose of using break in each case of switch statement?

559


What is lifetime variable?

521






Can we declare a class as abstract without having any abstract method?

549


Why hashmap is used in java?

544


why java uses class level type casting ?

2251


What is concurrent hashmap and its features?

521


What do you mean by object?

542


what is the difference between preemptive scheduling and time slicing? : Java thread

528


Which package is imported by default?

631


What are multiple inheritances? Is it supported by java?

458


Why are the destructors for base class and derived class called in reverse order when the program exits

1704


What is the purpose of the file class in java programming?

523