File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes chapter:8,self test-15 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 "chapter:8,self test-15" Watch "chapter:8,self test-15" New topic

chapter:8,self test-15

dolly shah
Ranch Hand

Joined: Jun 18, 2007
Posts: 383
from chapter:8, self test example:15

assume "mybean" is an attribute & is of type MyBean

options are:

A ${}

B ${mybean["name"]}

C ${mybean.objects.a}

D ${mybean["params"].a}

E ${mybean.params["a"]}

F ${mybean["objects"].a}

why the answers are c & f? What is "a" here.
They have describe: ""a" is not a List property and since "objects" is not a Map ,a lookup won't be performed.

-why we can't use "objects" in [] operator,it is List & in [] you can use List. They have given a specification page:1-64, I read that but still I am not getting it anyways.

Can anyone please help me?

SCJP-1.5<br />SCWCD-1.4
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Please check this other thread

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: chapter:8,self test-15
It's not a secret anymore!