<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Java Try with Resources :: CC 210 Textbook</title>
    <link>https://textbooks.cs.ksu.edu/cc210/10-exceptions/06-java/06-resources/video/index.html</link>
    <description>Resources Slides Video Script One of the most common use cases of the Try-Catch statement is to deal with input from a file or other resource, mainly because there are many possible exceptions that can occur when reading that input. However, even if we encounter an error, it is also good practice to make sure that we close whatever resource we are using. So, in this program, we have created a Scanner object, initialized it to read input from a file, and then included a Finally block that will handle closing the scanner, regardless of whether our code reaches an exception or not.</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 02 Jan 2023 21:18:16 -0600</lastBuildDate>
    <atom:link href="https://textbooks.cs.ksu.edu/cc210/10-exceptions/06-java/06-resources/video/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>