Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Question: A JSP expression can contain any Java expression that evaluates to a:

a) String object
b) Java object
c) Primitive type
d) Primitive type or Java object

Question: Which of the following JSP expressions is valid?

a) <%= request.getParameter("occupation"); %>
b) <%= request.getParameter("occupation") %>
c) <%= String occupation = request.getParameter("occupation"); %>
d) <%= String occupation = request.getParameter("occupation") %>
e) None of the above

Question: The following code:

<%String[] mailTypes = request.getParameterValues("mail");%>

a) Returns the name of all request parameters from the mail.jsp page.
b) Returns the first value of the mail parameter or null if none exist.
c) Returns all values of the mail parameter or null if none exist.
d) Returns the values of all request parameters from the mail.jsp page are invalid.

Question: To use your own Java class in a JSP, you can import the class with a:

a) JSP scriptlet
b) JSP expression
c) JSP directive
d) JSP declaration

Question: Which of the following is a valid JSP comment?

a) // comment
b)
c) <%-- comment --%>
d)

Question: In the code that follows, the numOfErrors variable

<%! int numOfErrors = 1; %>

a) Is initialized each time the page is requested.
b) Is an instance variable that is not thread-safe.
c) Is ignored by the JSP engine.
d) Is invalid JSP code.

Question: When a JSP is requested for the first time, the JSP engine does all but one of the following. Which one is it?

a) Generates a servlet for the JSP.
b) Generates the HTML code for the JSP.
c) Creates one instance of the servlet class.
d) Creates one thread

Question: When a JSP is requested for the second time, the JSP engine:

a) Creates a thread that has its own copy of the instance variables.
b) Creates a thread that has its own copy of the local variables.
c) Creates an instance of the JSP that has its own copy of the instance variables.
d) Creates an instance of the JSP that has its own copy of the local variables.

Question: A scriptlet contains one or __________ statements.

a) HTML
b) Java
c) XML
d) Web server

Java, Programming

  • Category:- Java
  • Reference No.:- M9132308
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Java

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

Solving 2nd degree equationsbull write the following java

Solving 2nd degree equations • Write the following Java methods • boolean real-sols(double a, double b, double c): it returns true if the 2nd degree equation ax2 + bx + c has real solutions • double solution1(double a, d ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Assignment - method in our madnessthe emphasis for this

Assignment - "Method in our Madness" The emphasis for this assignment is methods with parameters. In preparation for this assignment, create a folder called Assign_3 for the DrJava projects for the assignment. A Cityscap ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As