Select chapter



basics (7.papers)
constructors (1.papers)
packages (1.papers)
inheritance (7.papers)
misc (3.papers)
exceptions (5.papers)
threads (4.papers)
overloading (1.papers)
jsp (3.papers)
servlets (9.papers)
jdbc (2.papers)
util (1.papers)
xml (2.papers)
IO stream (3.papers)
Hide

Sponsored Links


  

java interview questions and answers

1
The JSP implicit object is defined in 
  1. _jspService()
  2. jspInit()
  3. jspDestroy()
  4. as instance variable declarartion in  class genertaed for jsp
Show Answer
Share Facebook gmail Twitter
2
All tag handler class must implement
  1. Tag
  2. JspTag
  3. IterationTag
  4. BodyTag
Show Answer
Share Facebook gmail Twitter
3
Which of the following is not true?
  1. The default value of isThreadSafe attribute of page directive is true.
  2. The default value of session  attribute of page directive is true.
  3. The default value of isErrorPage  attribute of page directive is true.
  4. The default value of autoFlush  attribute of page directive is true.
Show Answer
Share Facebook gmail Twitter
4
Which of the folllowing is true?
  1. Servlet and JSP technologies is substitution of each other
  2. Servlet and JSP technologies complement each other
  3. Servlet and JSP cannot be in the same application
  4. Servlet and JSP must be part of every web application
Show Answer
Share Facebook gmail Twitter
5
In MVC, JSP is 
  1. Model
  2. View
  3. Controller
  4. none
Show Answer
Share Facebook gmail Twitter
6
What is TLD?
  1. Tag LoaD
  2. Tag Library Deployment
  3. Tag Library descriptor 
  4. Tag Load Deployer
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
8
Which of the following options are true when user runs this JSP on 3 browser windows?
<html>
 <body>
  <%! int counter=0; %>
  Counter:<%= ++counter %> 
 </body>
</html>
  1. It prints Counter:3 on third browser window
  2. It prints Counter:2 on third browser window
  3. It prints Counter:0 on all three windows
  4. It prints Counter:3 on all 3 browser windows
Show Answer
Share Facebook gmail Twitter
9
What does the following JSP program print on the browser, when compiled and deployed on a Tomcat Server?
<html>
 <body>
 <%= "This is 'Skillgun' " %>
 <%= " \"Technologies\" " %>
 <%= "&amp EFCS"
 </body>
</html>
  1. This is 'Skillgun' "Technologies" & EFCS.
  2. This is Skillgun Technologies & EFCS.
  3. This is "Skillgun" "\Technologies" &amp EFCS
  4. This is  Skillgun Technologies and EFCS
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
11
Which of the following is legal JSP syntax to print the value of myName. Select one Correct answer.
  1. <%! String myName="Skillgun";%>
    <%= myName %>
  2. <% String myName="Skillgun"%>
    <%= myName; %>
  3. <%! String myName="Skillgun";%>
    <%= myName; %>
  4. <%! String myName="Skillgun"%>
    <%= myName %>
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
13
What gets printed when the following JSP code is invoked in a browser. Select one correct answer.

<% if (Math.random() < 0.5) 
 out.println("Skillgun");
else out.println("Tech");
%>
  1. The JSP will not compile
  2. Thee browser prints either Skillgun or Tech based on the return value of random
  3. Always prints Skillgun
  4. Always prints Tech
Show Answer
Share Facebook gmail Twitter
Read more papers :