• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question regarding web application

 
nagalatha mitta
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
i have a doubt regarding mock exam question on page no. 610 in HFSJ book
my doubt is wheather below statement is true or false

A.A web applucation may override any J2EE classes in the javax.*namespace.
book says above statement is false.but up to my knowledge above statement is true

accorind to servletapi docs . A subclass of HttpServlet must override at least one method, usually one of these oGet,doPost,doHead...
we all know that HttpServlet belongs to javax.servlet.http package

any clarifications please let me know


thanks in advance
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java and javax are two packages and they have nothing to do with
javax.servlet.http package except servlet directory is in the
javax directory and http directory inside the servlet directory.

Interface HttpSertvlet belongs to javax.servlet.http package.

Namespaces are different. Web-app must not override any class in the java.*
or javax.* namespaces.


Thanks,
 
nagalatha mitta
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi chandra bhatt
thanks for clarifing my doubt
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic