This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question about tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "question about tag" Watch "question about tag" New topic
Author

question about tag

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
Given that file1.jsp has the following custom tag:
<m:test times="5"/>
And the actual class file has the following setter method for variable 'times':
void setTimes(int t){
this.t=t;}
Identify true statements:
A Code works fine
B Parameter t should be String int the method : setTimes(String t)
C The body of the method should be: this.t=Integer.parseInt(t)
D The name of the variable should be 'times'

B AND C are right ,why? please help to understand, thanks


SCJP<br />SCWCD<br />SCEA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question about tag
 
It's not a secret anymore!