Hw621 Error Handling Fix Code Snippet Throw Exceptions Still Need Call Secret Note Problem Q37045759

Java: Error Handling question

HW62.1. Error Handling Fix the code snippet below so that it does not throw any exceptions. (You will still need to call secret.) (Note that this problem may be hard to complete until after Wednesday’s lecture on exceptions and errors.) k a Don’t throw any errors If secret() throws an error, you should return -1. public static int canFail)f return secret Question.java 1 2Don’t throw any errors. If secret() throws an error, you should return -1 6 public static int canFail) 7return secret ) 8 Show transcribed image text HW62.1. Error Handling Fix

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.