• 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

please give me answer of these question soon

 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear sir i have some objective type question i am not sure its answer i would like to know the answer of these question which are as below.

1) which session management technique does not transfer session information between a client and server?
a. URL rewriting.
b. Cookies.
c. Servlet session API.
d. Hidden Fields

2) select the correct option that specifies the two exception classes that handle servlet-realted exception.
a. IOException,ServletException
b. ServletException,UnavailableException
c. UnavailableException,IOException
d. IOException,ServletException

3) which of the following deployment descriptor elements allows specifying the exception type to map to an error page?
a. <error>
b. <error-page>
c. <exception>
d. <exception-type>

4) select the correct code snippet that imports the java.io and java.util packages in a JSP page. The scope of the response object of a JSP application limits to the:
a. <%@ page import="java.io.*; java.util.*"%>
b. <%@ page import="java.lang.*","java.util.* " %>
c. <%@ page import="java.io.*, java.util.*"%>
d. <%@ page import="java.io.*, java.util.*"%>

5) select the correct option which specifies the useBean action tag to include a javaBean named TestBean:
a. <jsp:useBean id="test" name="TestBean" >
b. <jsp:useBean id="test" name="TestBean" />
c. <jsp:useBean id="TestBean">
d. <%jsp:useBean id="test" name="TestBean" %>

6) The method not defined in the Tag interface is:
a. doStart()
b. doEnd()
c. doAfterBody()
d. doInitBody()


I HAVE EXAM TODAY SIR PLEASE SOON

with regard

Arun kumar maalik
 
Ranch Hand
Posts: 77
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to give answers
1. C
2. A
3. B
4. C, D (btw whts the difference between these two options...I think both are same)
5. None of them is right.Because you have to specify either class or type.
6. C & D (I am assuming that first thwo options are doStartTag() and doEndTag(), otherwise answer will be A,B,C,D)

ALL THE BEST ! ! !
 
Imran Vohra
Ranch Hand
Posts: 77
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think, For question 2- B is the right answer not A.
Any thoughts?

Thanks
Imran
 
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes for 2 - B is the right answer.

Rgds.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All
What is Servlet Session API in questiob 1
Please throw some light over the same.

Regards
Amit
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

3) which of the following deployment descriptor elements allows specifying the exception type to map to an error page?
a. <error>
b. <error-page>
c. <exception>
d. <exception-type>



I think the answer is "d" as <exception-type> is the DD element which allows to specify the exception type to map to an error page.

<error-page>
<exception-type>java.lang.Throwable</exception-type> <location>/errorJsp.jsp</location>
</error-page>
 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks to all my Dear tack care
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Servlet session API.



Internally it uses Cookies or URL Writing. So in turns it passes some information.

Comments Please?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Arun, this looks much like a homework assignment. I hope that you weren't asking us to do your homework for you.
 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes sir yoy are saying write realy the question which i have asked with you is a home work asigment.

But see what happen my exam was on 30 august (we are student of niit where module test happen in which you have to get more than 70%) i did my all asignment but i got confuse on above question which i asked with you people. is it wrong sir?
if you people say that don't ask this types of question then i will not ask cose my teacher also get confuse in these question that 's why i asked with you people.
By the way i scored 93% in my exam

Thanks

Arun kumar maalik
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic