Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AD0-E103 topic 1 question 27 discussion

Actual exam question from Adobe's AD0-E103
Question #: 27
Topic #: 1
[All AD0-E103 Questions]

A developer is creating a custom method. This method must return a String property y from child x. the method must use only Sling APIs.
How should the developer retrieve property y of node x, and node x may or may NOT exist?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: A

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
chunpin
3 years, 2 months ago
Answer: B -------------------------------------------------------------- A: will cause nullpointer, hence wrong C: getProperties return PropertyIterator , hence wrong D: node does not have method getValueMap(), hence wrong B: should have ValueMap map = x.getValueMap();
upvoted 2 times
...
kasyap1125
3 years, 5 months ago
Option B value map declaration is wrong. it is having ValueMap<String> which is wrong. So, I guess it is A.
upvoted 2 times
...
pkg82
3 years, 9 months ago
A may cause NPE. so correct answer is B
upvoted 2 times
...
heenamadan
3 years, 9 months ago
Should be B
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...