Solved

Consider the Following Code Fragment

Question 24

Multiple Choice

Consider the following code fragment:
Public String checkCity()
{
Zone = getTimeZone(city) ;
If (zone == null) { return "error"; }
Return "next";
}
What is the result of executing the following JSF statement if zone is null?
<h:commandButton value="Submit" action="#{timeZoneBean.checkCity}"/>


A) An error message is printed.
B) The error.html page is displayed.
C) The next.html page is displayed.
D) The same page is displayed again.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions