• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

implicit objects question

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following statements are correct? ( choose 2 )
1 - The implicit variable 'session' can be used to store values needed by other servlets or JSPs of the same web application.

2 - The implicit variable 'request' can be used to store values needed by other servlets or jsps across multiple requests.

3 - You can use the implicit variable 'response' to set the content type of the output.

4 - The implicit variable 'out' is same as returned by response.getWriter()

5 - All JSPs have access to 'request', 'response' and 'session' variables.

why choice #4 is not correct
mock exam answers was #1 & # 3
 
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
response.getWriter() returns type of PrintWriter. But 'out' is type of JspWriter.
 
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!