Which of the following is used to define a block of code that can handle exceptions in Java?
Java MCQ: Which of the following is used to define a block of code that can handle exceptions in Java? a) try block b) catch block c) finally block d) All of the above Answer: d) All of the above Explanation: In Java, exception handling involves several constructs, including the try, catch, and finally blocks. […]