• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

query in servlet

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
# Does this servlet compile successfully? (1 correct answer)


answer is 3
Q.2
# Does this servlet compile successfully? (1 correct answer)



answer 1

I get confused here ........is it not the requirement of servlet to throw ServletException........as in second question the code get compiles succesfully,,,,,,,,,,I dont understand this.....please help me..

thanks in advance
 
Sheriff
Posts: 9674
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
geet please Quote Your Sources when you post a question...
 
geet rahane
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the above question from Free SCWCD Mock exam for Servlets
By Nikos....... can anyone please help ..................

 
Ranch Hand
Posts: 437
Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Geet.
In Q1) supposed to throw ServletException. See RequestDispatcher api

Q2) will not throw ServletException. See HttpServletResponse api.
 
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was simple !

Good Going Chinmaya... Looks like you have everything at the tip your tongue!
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nabila.
No, I am not having that much knowledge. I am improving. I checked the relative api.
 
geet rahane
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Chinmaya....
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Chinmaya Chowdary wrote:Hi Nabila.
No, I am not having that much knowledge. I am improving. I checked the relative api.



You do answer a lot of questions.Good for you .
I still have a looong way to go. I am towards the end of my first reading of HFSJ and feel like I have gotten t he mere overview of what I am supposd to study!!


tc n keep it up!
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic