This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web Application Class loader.

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the Web Application Class loader section of Servlet 2.4 specification
As described in the J2EE license agreement, servlet containers that are not part of a J2EE product should not allow the application to
override J2SE platform classes, such as those in the java.* and javax.* namespaces, that J2SE does not allow to be modified. Also,
servlet containers that are part of a J2EE product should not allow the application to override J2SE or J2EE platform classes,
such as those in java.* and javax.* namespaces, that either J2SE or J2EE do not allow to be modified.

Above both sentences have "that either J2SE or J2EE do not allow to be modified."
Does override mean extending class? If yes i can offcourse extend any non-final class in the name space *.java & *.javax, In fact the
very basic servlet extends HttpServlet. So what excatly does the above sentences defined in the specs mean?
Based on the answer , I can conclude whether the answer to Q - 14 [pg 610, From HFServlets & JSP 1 st edition] .
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some one reply.
I dont want to mug it up
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that it says "overriding classes". If that meant extending, it would say "overriding methods".

It really talks about modifying classes; in other words, replacing an existing class in the java.* and javax.* hierarchies with a different one.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!