This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question from mock exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "question from mock exam" Watch "question from mock exam" New topic
Author

question from mock exam

Shashidhar Yarabati
Ranch Hand

Joined: Jun 17, 2007
Posts: 175


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...


Shashidhar<br /> SCJP 1.5<br /> SCWCD 5.0
Musab Al-Rawi
Ranch Hand

Joined: Aug 06, 2007
Posts: 231
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 ]

SCBCD - SCWCD - SCJD - SCJP - OCA
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: question from mock exam
 
It's not a secret anymore!