Why we use init() rather Constructor

前端 未结 4 1433
情歌与酒
情歌与酒 2021-01-20 05:00

why do we need init() rather than a constructor?

Please answer in reference of Servlet and Applet.
How does t

4条回答
  •  迷失自我
    2021-01-20 05:58

    init() method is invoked only once and therefore only one instance of the controls will be created.

提交回复
热议问题