资讯

Every subclass of java.lang.Exception is a checked exception. A checked exception is one that must be advertised from the method that throws it and must either be caught or advertised from the caller.
Use Java assertions to test your assumptions about program correctness and check them in your code.
Not sure what a try catch is? We explain how to use a try catch block in Java and how to write methods that throw exceptions.