my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes mock exam question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "mock exam question" Watch "mock exam question" New topic
Author

mock exam question

kiran kumar reddy
Greenhorn

Joined: Jun 15, 2008
Posts: 4
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.


SCJP 5.0 with 83%<br />SCWCD 5.0 with 98%
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

"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.


[My Blog]
All roads lead to JavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

And please quote your sources.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

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
Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
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
 
Consider Paul's rocket mass heater.
 
subject: mock exam question