Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question from mock exam

 
Shashidhar Yarabati
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...
 
Musab Al-Rawi
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic