aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question from mock exam Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply 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 agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: question from mock exam
 
Similar Threads
Can we Have Write Service,doGet,doPost method implementation in a single servlet
What will happen when you attempt to compile and run the following code
Question from Marcus Green
RequestDispatcher : content in the forwarding page.
Passing List from Servlet to jsp ? - value of list becomes NULL