7. Java Enums
8. Java Strings
9. Java Exceptions - Try...Catch
11. the throws keyword is used to declare that a method can throw one or more exceptions. This is part of Java's exception handling mechanism, which allows methods to signal that an error has occurred, and the calling code should handle it. By using throws, you specify that the method may throw an exception, but the method does not handle it itself. It passes the responsibility of handling the exception to the caller.

Comments
Post a Comment