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 merge sort in java?

579


What are register variables what are the advantages?

446


What do you mean by inner class in java? Explain

584


What is try-with-resources in java?

610


What is the SimpleTimeZone class?

1794






What is a literal coding?

510


What are the differences between string, stringbuffer and stringbuilder?

520


How do you check if a number is a perfect square?

511


What is a subsequence of a string?

543


What do you mean by stack?

641


Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.

1587


What are the supported platforms by java programming language?

566


If a method is declared as protected, where may the method be accessed in java programming?

496


How do I write a self declaration?

551


Define max and min heap, also the search time of heap.

587