Oracle
1Z0-899 · Question #6
1Z0-899 Question #6: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #6. The question stem and answer options stay visible for context.
Question
Given the JavaBean class: public class MyBean { private Boolean roasted = false; public MyBean () {} public Boolean isRoasted () { returned roasted } public void setRoasted (Boolean roasted) { this.roasted = roasted; ] } Assume a controller has created an instance of this bean, called setRoasted (true), and inserted the bean into the application scope using the name "myBean". A JSP contains these two tags: <jsp: useBean id = "aBean" class = "MyBean" scope = "page" \ /> <jsp: getProprty name = "aBean" property = "roasted" \ /> Which is true?
Options
- Athe page will include the output false
- Bthe page will include the output
- Cthe page will report that the property roasted does not exist
- Dthe page will report that the syntax of the useBean tag is incorrect
- Ethe page will report that the syntax of the getProperty tag ls incorrect
Unlock 1Z0-899 to see the answer
You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.