Is this answer right or wrong?

Moderator: admin

Post Reply
Shiny

Is this answer right or wrong?

Post by Shiny »

Which of the following are valid JSP code fragments?
Each option shows code for an independent JSP file.

<%@ page import="java.util.*" autoFlush="true"%>
<%@ page import="java.io.*" autoFlush="false"%>

Is this wrong? the explanation given is "Any page directive except import can only occur only once."

Then why is this option wrong? This does mean that import can occur multiple times , right? Some one explain ,pls.

Thanks.

Online
admin
Site Admin
Posts: 10066
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: Is this answer right or wrong?

Post by admin »

Because autoFlush is appearing twice.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 138 guests