in Education by
What is the difference between AutoCloseable and Closeable? (a) Closeable is an interface and AutoCloseable is a concrete class (b) Closeable throws IOException; AutoCloseable throws Exception (c) Closeable is a concept; AutoCloseable is an implementation (d) Closeable throws Exception; AutoCloseable throws IOException I had been asked this question in homework. The doubt is from AutoCloseable, Closeable and Flushable Interfaces in section Session Management, JSP & API of Java Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The correct option is (b) Closeable throws IOException; AutoCloseable throws Exception Explanation: Closeable extends AutoCloseable and both are interfaces. Closeable throws IOException and AutoCloseable throws Exception.

Related questions

0 votes
    Autocloseable was introduced in which Java version? (a) java SE 7 (b) java SE 8 (c) java SE 6 ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of the below is a child interface of Autocloseable? (a) Closeable (b) Close (c) Auto (d) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    The basic difference between JavaScript and Java is _________ (a) There is no difference (b) Functions are ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    The main difference between the variables declared with var and with let is __________ (a) var is confined ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    JavaScript code between a pair of script tags are called __________ (a) Non-inline (b) External ( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these class is used to read characters and strings in Java from console? (a) BufferedReader (b ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...