Question: It is a good practise to not throw which exception in close() method of autocloseable?

Options

A : IOException

B : CustomException

C : InterruptedException

D : CloseException

Click to view Correct Answer

Previous || Next

Application Lifecycle - Ant, Maven and Jenkins more questions

Which of the following is not a maven goal?

Which one of the following is not an annotation used....

Which one of the following is not ID generating strategy....

Autocloseable was introduced in which Java version?

Can we run Junits as a part of Jenkins job?

What is the alternative of using finally to close resource?

Which command can be used to check maven version?

Which maven plugin creates the project structure?

Which of the below is a child interface of Autocloseable?

Which of the below is a source code management tool?

Annotations more Online Exam Quiz

Annotations

AutoCloseable, Closeable and Flushable Interfaces

Client and Server

Debugging in Eclipse

Design Patterns

Java Beans