JBridge

JBridge: Certification Question Of The Day

JBridge Home >> Certification Questions >> Question for Friday May 30th 2003 Friday May 30th 2003

Which of the following statements about implicit variables within jsps are false? (1 correct answer)



A The pageContext variable is an instance of the javax.servlet.jsp.PageContext class.
B The session variable is an instance of the javax.servlet.http.HttpSession class.
C The application variable is an instance of a class implementing the javax.servlet.ServletContext interface.
D The majority of implicit variables within a jsp are themselves derived from the pageContext implicit variable.
Page down for the answer...











































The Answer

B is false, and so is the correct answer. It's not wrong by much; HttpSession is infact an interface, not a class. A correct answer might read: "The session variable is an instance of a class implementing the javax.servlet.http.HttpSession interface".


EMail: dbridgewater@jbridge.co.uk
Phone: +44 (0)1943 877414
Fax: +44 (0)1943 877414
Mail: David Bridgewater, Willow Dene, Bradford Road, Menston, Ilkley, West Yorkshire, LS29 6ED, UK
Copyright © 2003 David Bridgewater. All rights reserved.