exam questions

Exam 1z0-819 All Questions

View all questions & answers for the 1z0-819 exam

Exam 1z0-819 topic 1 question 88 discussion

Actual exam question from Oracle's 1z0-819
Question #: 88
Topic #: 1
[All 1z0-819 Questions]

Given:



What is the result?

  • A. 1.99,2.99,0
  • B. 1.99,2.99,0.0
  • C. The compilation fails.
  • D. 1.99,2.99
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
d7bb0b2
6 months, 4 weeks ago
Selected Answer: C
C is correct, final variable not initialized when is created, must be initialialized in every contructor or call this() other constructor that do it
upvoted 1 times
...
Omnisumem
10 months, 4 weeks ago
Selected Answer: C
Tested C. "invalid method declaration; return type required" lines: 3, 5 and 7.
upvoted 1 times
...
[Removed]
11 months, 1 week ago
Selected Answer: C
There's no constructor with zero arguments.
upvoted 1 times
[Removed]
11 months, 1 week ago
My bad. It doesn't compile because the final variable must be set in every constructor.
upvoted 1 times
...
...
tmuralimanohar
1 year, 1 month ago
Answer: C
upvoted 1 times
...
Stavok
1 year, 1 month ago
Selected Answer: C
Correct answer is C public Price() {}: The blank final field value may not have been initialized
upvoted 3 times
...
Obalt
1 year, 6 months ago
Correct answer is C
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago