June 2018
Beginner
722 pages
18h 47m
English
The List interface provides two methods for adding an element:
Both methods can throw a RuntimeException if something goes wrong. So, putting a try-catch block around the method makes the code more robust (if the catch block does not simply rethrow the exception but does something meaningful). Read the documentation of the List interface API online and see what the names of the exceptions these methods can throw are and under which conditions ...
Read now
Unlock full access