Deal of The Day! 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-809 Topic 8 Question 84 Discussion

Actual exam question for Oracle's 1Z0-809 exam
Question #: 84
Topic #: 8
[All 1Z0-809 Questions]

Given:

and the command:

java Product 0

What is the result?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Bobbye
13 hours ago
I'm going with B. There's gotta be a compilation error if the Product class isn't set up to handle a non-numeric input.
upvoted 0 times
...
Shala
7 days ago
D has to be the right answer. Passing a non-numeric value like '0' to the Product class should throw a NumberFormatException.
upvoted 0 times
...
Brynn
7 days ago
I think the answer is D) A NumberFormatException is thrown at run time.
upvoted 0 times
...
Lisbeth
11 days ago
I think the correct answer is C. The product class is set up to handle a numeric input, so passing a 0 should result in the new price being 0.0.
upvoted 0 times
...

Save Cancel