|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#43. Exhibit: 1. public class JellyBean { 2. private int count; 3. public void setCount(int count) { 4. this.count = count; 5. } 6. public int getCount() { 7. return count; 8. } 9. }
Given: 1. <html> 2. <body> 3. <jsp:useBean id=”ExamsheetsBean” class=”JellyBean”> 4. 5. </jsp:useBean> 6. </body> 7. </html>
Which two inserted individually at line 4, will initialize the count property of the newlycreated JellyBean ExamsheetsBean? (Choose two)
Show comments for this question (0)
Add comments
Link to this question
|
|
#46. Exhibit: 1. package beans; 2. public class ValueBean { 3. private int value; 4. public ValueBean() { 5. this.value – 200; 6. } 7. public void setValue(int value) { 8. this.value = value; 9. } 10. public.value int getValue() { 11. return value; 12. } 13. }
Given: 1. <jsp:useBean id-‘valueBean’ class-‘beans.ValueBean’> 2. <jsp:setProperty name=’valueBean’ property=’value’ 3. value-‘<%- 100 %>’/> 4. </jsp:useBean> 5. <%- valueBean.getValue() %> 6. <jsp:useBean id=’valueBeanTwo’ class=’beans.ValueBean’/> 7. <%- valueBeanTwo.getValue() %>
What is the result?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.151
|
Server date 06:08 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|