Complete the code to declare that the method may throw an exception.
public void readFile() [1] IOException { }The throws keyword declares that a method might throw an exception.
Complete the method declaration to indicate it throws multiple exceptions.
public void process() [1] IOException, SQLException { }The throws keyword can list multiple exceptions separated by commas.
Fix the error in the method declaration that incorrectly uses the throws keyword.
public void save() [1] IOException { }The correct keyword to declare exceptions is throws, not throw.
Complete the code to declare a method that throws two exceptions.
public void connect() [1] IOException, SQLException { }Use throws once, then separate exceptions with a comma.
Complete the code to declare a method throwing three exceptions correctly.
public void execute() [1] IOException, SQLException, NullPointerException { }Use throws once, then separate all exceptions with commas.
