Question: What is the alternative of using finally to close resource?

Options

A : catch block

B : autocloseable interface to be implemented

C : try block

D : throw Exception

Click to view Correct Answer

Exam Quiz App on Google Play

Previous || Next

Application Lifecycle - Ant, Maven and Jenkins more questions

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?

It is a good practise to not throw which exception....

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?

Which of the following is not true for Ant?

Annotations more Online Exam Quiz

Annotations

AutoCloseable, Closeable and Flushable Interfaces

Client and Server

Debugging in Eclipse

Design Patterns

Java Beans