Title: Java-Working with Exception and ArrayList
Duration: 20 minutes
Summary: This video discusses exceptions and arraylists. We take a detail tour of how exceptions are thrown and caught. In addition to main, we create two methods: one method that throws an exception and another method that does not throw an exception. Both methods contain try, catch, and finally blocks. We trace through the call stack to figure out how exceptions are thrown and caught. We discuss how the finally block is always run whether there was an exception or not. We also added code to see how generic ArrayLists work and we can add elements to them (in this case we added strings).
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: Java - Core Concepts
Keywords:java, ArrayList, Exceptions, System, println, printf, System.err, try, catch, finally, throw, String.