Question: if we define the main method as public static void main ( String [ ] args ) throws Exception { . . . . }
if we define the main method as
public static void mainString args throws Exception
What can we say about the situation?
That means we can'twont handle any exception that main method may throw.
That means we will handle all exceptions inside the main method
The syntax is wrong. We can not write throw or throws to main main method declaration.
The syntax is wrong. It should be throw Exception not throws.
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
