• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

mock exam question

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Match the implicit variable on its corresponding type

Types.
1.javax.servlet.ServletContext
2.javax.servlet.http.HttpSession
3.javax.servlet.http.HttpServlet
4.javax.servlet.ServletResponse
5.javax.servlet.jsp.PageContext
6.java.lang.Throwable
7.javax.servlet.ServletConfig


Variables

a.session
b.config
c.application
d.exception


My answer to this question is 1-c, 2-a, 3-b, 4-b, 5-c, 6-d, 7-b
But doubt in 3,4 and 5.
Correct me.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"kiran kumar reddy scjp",
Welcome to the ranch. You may not be aware of the ranch Naming Policy. Please read it carefully and change your name accordingly (obviously fake names are not allowed). Thank you.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And please quote your sources.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by kiran kumar reddy scjp:
Types.
1.javax.servlet.ServletContext
2.javax.servlet.http.HttpSession
3.javax.servlet.http.HttpServlet
4.javax.servlet.ServletResponse
5.javax.servlet.jsp.PageContext
6.java.lang.Throwable
7.javax.servlet.ServletConfig




Variables

a.session----HttpSession
b.config-----ServletConfig
c.application-ServletContext
d.exception--Throwable
 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Types Variables
a.session 2.javax.servlet.http.HttpSession
b.config 7.javax.servlet.ServletConfig
c.application 1:javax.servlet.ServletContext
d.exception 6.java.lang.Throwable
 
You got style baby! More than this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic