exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 66 discussion

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

Given the code fragment:



What is the result?

  • A. 10
  • B. 1
  • C. The compilation fails at line 9.
  • D. The compilation fails at line 16.
  • E. The compilation fails at line 13.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

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
ASPushkin
6 months, 1 week ago
Selected Answer: E
For static final fields, this means that we can initialize them: upon declaration in the static initializer block
upvoted 1 times
...
mendjijet
12 months ago
Selected Answer: E
E is ok Tested line 13 java: variable y might not have been initialized
upvoted 1 times
...
d7bb0b2
1 year ago
E is correct, so compiler marked declaration of y error, but if run program mention that the error is constructor that try to access a variable not initialized
upvoted 2 times
...
Omnisumem
1 year, 4 months ago
Selected Answer: E
Tested: E.
upvoted 1 times
...
Stavok
1 year, 6 months ago
Selected Answer: E
E is correct,
upvoted 1 times
...
tmuralimanohar
1 year, 7 months ago
Answer: E
upvoted 1 times
...
KiraguJohn
1 year, 8 months ago
variable y needs to be initialised
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