Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

"Webapp must not override any class in teh java.* or javax.* namespaces"

Ranch Foreman
Posts: 1898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On p.647 of Head First book,

Option C and D are incorrect because webapp must not override any class in the java.* or javax.* namespace
Option A is correct.

Which statement concerning the container class loader are true?
Option A. web application should not attempt to override container implementation classes.
Option C. A web application may override any J2ED classes in javax.* namespace
Option D. A web developer may override J2EE platform classes provided they are not contained in a library JAR within a WAR.

But as I learn, the web application can override :
1. doStartTag() method of javax.servlet.jsp.TagSupport,
2. contextInitialized () method of javax.servlet.ServletContextListener, or
3. doPost method in javax.servlet.HttpServlet...

Creator of Enthuware JWS+ V6
Posts: 3343
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Overriding classes in this part of the specs means that you are not allowed to create your own implementation of the classes: you should use the ones that come with the EE-container.

For instance: you are allowed to extend the TagSupport class but you are not allowed to replace the TagSupport class with your own implementation.
Hey! You're stepping on my hand! Help me tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic