Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-900 Topic 5 Question 91 Discussion

Actual exam question for Oracle's 1Z0-900 exam
Question #: 91
Topic #: 5
[All 1Z0-900 Questions]

Given the code fragment:

How can you get all property names of a JMS message in the JMS consumer onMessage operation?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Rolande
2 months ago
Definitely option A. Anything that involves the word 'array' is automatically the best choice. It's like a property name buffet!
upvoted 0 times
Taryn
2 months ago
Agreed, option A it is then.
upvoted 0 times
...
Georgene
2 months ago
Yeah, arrays are always a good choice.
upvoted 0 times
...
Micaela
2 months ago
I think option A is the way to go.
upvoted 0 times
...
...
Eden
2 months ago
But option A returns an array of property names directly, which is more efficient.
upvoted 0 times
...
Weldon
3 months ago
I'm going with C. Lists are just so much more fun to work with, you know? Plus, who doesn't love a little property party?
upvoted 0 times
...
Juan
3 months ago
B and C both work, but B is the classic way to do it. Gotta love that good old Enumeration!
upvoted 0 times
Hyman
1 months ago
B and C both work, but B is the classic way to do it. Gotta love that good old Enumeration!
upvoted 0 times
...
Justa
2 months ago
C) List props = msg.getProperties();
upvoted 0 times
...
Leana
2 months ago
B) Enumeration props = msg.getPropertyNames();. Iterator props = msg.getPropertyNames();
upvoted 0 times
...
Denae
2 months ago
A) String [] props = msg.getPropertyNames();
upvoted 0 times
...
...
Jules
3 months ago
I disagree, I believe the answer is B) Enumeration props = msg.getPropertyNames();. Iterator props = msg.getPropertyNames();
upvoted 0 times
...
Xuan
3 months ago
Option A all the way! It's the most straightforward and intuitive way to get the property names. No need to complicate things.
upvoted 0 times
Marla
2 months ago
Yeah, it's simple and easy to understand.
upvoted 0 times
...
Laurel
2 months ago
I agree, option A is definitely the way to go.
upvoted 0 times
...
...
Eden
3 months ago
I think the correct answer is A) String [] props = msg.getPropertyNames();
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77