Vidyalelo
Java Programming · Q33

Miscellaneous Java

Programming · Java Programming · question 33

Q33

What is the purpose of the `try-with-resources` statement in Java?

A.
To define JavaBean properties
B.
To execute SQL queries
C.
To automatically close resources like streams, files, or sockets
Answer
D.
To create JavaBeans

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board