Java SE 8/11 Programmer II Exam Series: Exception Handling and Assertions

Introduction In this post, we will look at the following exam objectives. Note that this is also a part of the Java SE 11 Programmer II Certification. Use the try-with-resources construct Create and use custom exception classes Test invariants by using assertions Use the try-with-resources construct The new try-with-resources statement automatically closes all resources opened […]