exam questions

Exam 1z0-809 All Questions

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

Exam 1z0-809 topic 1 question 95 discussion

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

Given:
and the code fragment:

What is the result?

  • A. A compilation error occurs at line n2.
  • B. A compilation error occurs because the try block doesn't have a catch or finally block.
  • C. A compilation error occurs at line n1.
  • D. The program compiles successfully.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
asdfjhfgjuaDCV
4 months, 3 weeks ago
A is the answer
upvoted 1 times
...
steefaand
5 months, 3 weeks ago
Selected Answer: A
A is correct. Class doesnt implement AutoCloseable or Closeable so it cant be used im try with resources.
upvoted 1 times
...
MahdiHamdii
1 year, 7 months ago
Selected Answer: A
Answer is A because the class requires to implement AutoClosable. B is not correct because the try with ressources can be without any catch or finally block.
upvoted 2 times
...
WilsonKKerll
2 years, 4 months ago
Selected Answer: A
Answer is A.
upvoted 1 times
...
Samriddji
2 years, 8 months ago
A. (dc cannot be converted to AutoCloseable)
upvoted 1 times
...
Svetleto13
3 years, 2 months ago
A,tested.It requires to implement AutoCloseable
upvoted 4 times
...
Tarik2190
3 years, 3 months ago
Answer is A. Tested it requires to implement AutoClosable
upvoted 2 times
...
laura_lu93
3 years, 5 months ago
Answer is A because DataConverter has close() method but doesn't implement AutoCloseable
upvoted 3 times
...
pul26
3 years, 7 months ago
Answer is B as DataConverter is not AutoClosable causes compile error
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago