JSP Elements Online Exam Quiz

JSP Elements GK Quiz. Question and Answers related to JSP Elements. MCQ (Multiple Choice Questions with answers about JSP Elements

Can <!?comment?> and <%?comment?%> be used alternatively in JSP?

Options

A : TRUE

B : FALSE

C : -

D : -

View Answer

How private field can be called using reflection?

Options

A : getDeclaredFields

B : getDeclaredMethods

C : getMethods

D : getFields

View Answer

How private method can be called using reflection?

Options

A : getDeclaredFields

B : getDeclaredMethods

C : getMethods

D : getFields

View Answer

Java code is embedded under which tag in JSP?

Options

A : Declaration

B : Scriptlet

C : Expression

D : Comment

View Answer

What are the components of a marker interface?

Options

A : Fields and methods

B : No fields, only methods

C : Fields, no methods

D : No fields, No methods

View Answer

What is not the advantage of Reflection?

Options

A : Examine a class's field and method at runtime

B : Construct an object for a class at runtime

C : Examine a class's field at compile time

D : Examine an object's class at runtime

View Answer

What temporarily redirects response to the browser?

Options

A : <jsp:forward>

B : <%@directive%>

C : response.sendRedirect(URL)

D : response.setRedirect(URL)

View Answer

Which of the following is not a directive in JSP?

Options

A : page directive

B : include directive

C : taglib directive

D : command directive

View Answer

Which of the following is not a marker interface?

Options

A : Serializable

B : Cloneable

C : Remote

D : Reader

View Answer

Which tag is used to set a value of a JavaBean?

Options

A : <c:set>

B : <c:param>

C : <c:choose>

D : <c:forward>

View Answer

Annotations more Online Exam Quiz

Debugging in Eclipse

Design Patterns

Java Beans

JDBC

JSP

Reflection API

Servlet

Session Management

Web application

Abrasive Jet Machining - Introduction and Machining system