This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Mock Exam Question - what is the correct answer ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Mock Exam Question - what is the correct answer ?" Watch "Mock Exam Question - what is the correct answer ?" New topic
Author

Mock Exam Question - what is the correct answer ?

Mana Lesar
Greenhorn

Joined: Apr 12, 2010
Posts: 25
Here is the question:


And the Answer says: "Foo".

As for me the code will not compile due to error in line:

String name = pageContext.findAttribute("name");

because attribute needs to be casted to String here... But i have found this question in other source and it also said that answer is "Foo".
What you think ranchers ?
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1642
    
  23

Hi,

In order to get an answer: please QuoteYourSources

Regards,
Frits
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Mock Exam Question - what is the correct answer ?
 
Similar Threads
Is returning invalid integer from doStartTag() is equivalent to returning EVAL_BODY_INCLUDE ?
Custom Tag Handler problem
Doubt in TagSupport (Classic Tag)
How can a parent tag access its child tag's attribute in Simple Tag
Which one to select between Classic custom tag and Simple custom tag