Question: What is wrong in the following program?A method call that does not declare exceptions cannot be placed inside a try block.You cannot have a try
What is wrong in the following program?A method call that does not declare exceptions cannot be placed inside a try block.You cannot have a try block without a catch block.Nothing is wrong.You cannot have a try block without a catch block or a finally block.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
