Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

question from mock exam  RSS feed

 
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


How come the above will compile and give output the contents of menu.jsp followed by "Output after menu.jsp"???

THE doGet(..) METHOD IS DECLARED AS protected...
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
because it is called by the service() which you get when you extend HttpServlet.
by the way doGet() doPost() are protected. check the API
[ May 07, 2008: Message edited by: Musab Al-Rawi ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!