#java #tutorial #programming #programmers #programação
#titorial #computerscience #computerknowledge #geeks #exceptionhandling #exceptionhandling
In this lesson we discuss the closing of resource in Java once our application is finished using them.
We discuss what is meant by resource leaks.
As a working example we read a text file into a BufferedReader, making a backup of this file using the BufferedReader.
We look at the java.io.Closeable interface and what one needs to be aware of when using the try-catch-finally statement to manage exceptions when trying to use our resources, as well as, how to close the resources.
Special attention is required to make sure that any open resources are closed, once we're done with them , even if a previously opened resource ore other code throws an exception.
Video Link - • Exceptions -Lesson 7-Closing resources and...
Channel Link: - / @pcpwjoao
Play list Link - • Exceptions
Source code - https://www.dropbox.com/sh/ejttrf9yzh...