Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock exam question

 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In mock exam from Enthuware is question about import in JSP. There are two options
1)<%@ page import='java.util.*'%>
2)<%@ import package='java.util.*'%>

I think 1) is correct, but they marked 2) as correct.

What is correct?
Thanks.
 
Claudio Lande
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David Ulicny:
In mock exam from Enthuware is question about import in JSP. There are two options
1)<%@ page import='java.util.*'%>
2)<%@ import package='java.util.*'%>

I think 1) is correct, but they marked 2) as correct.

What is correct?
Thanks.


Definitely 2) is correct. import is an attribute of the page directive and not a directive by itself.
 
Claudio Lande
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Claudio Lande:


Definitely 2) is correct. import is an attribute of the page directive and not a directive by itself.


Ooops, I mean 1) is correct, sorry!
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for answer, this is really confusing when the mock exam is wrong.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic