Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

init() method

 
suresh boyella
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

would you please give me solvation

My doubt is, what will happen if we remove init() method in servlet life cycle?



Thanks

suresh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by 'remove' the init method?

Should you choose not to override init, the default implementation provided by the container will be used.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic