• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

query in servlet

 
geet rahane
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
 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 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 ..................

 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • 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.
 
Nabila Mohammad
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: 434
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic