This week's book giveaway is in the Java 9 forum. We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line! See this thread for details.
"Webapp must not override any class in teh java.* or javax.* namespaces"
posted 2 years ago
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...