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

default constructor in HttpServlet

 
saravanan ragunathan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I studied that "please don't define the constructor as your own when extending HttpServlet
use the default one given by compiler "what does the default construcor do ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"please don't define the constructor as your own when extending HttpServlet use the default one given by compiler"

This does not make any sense (although I sense it might have to do something with this). Where did you read this ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please SearchFirst. The subject of constructors in servlets has been broached many times.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic