Java I/O File Handling - Locating the Resource: File (Java IO) vs Path (Java NIO2)

Published: 14 July 2024
on channel: Linh Vu
313
25

In today’s video, we’re going to review together Java IO API. As you’ve already known, I/O here means input and output, more specifically, read from a resource into a java application and write from a java application out to a resource. A resource could be a disk, filesystem, network, etc,…

There are two main concepts in Java I/O:
first, we need to know where the file is and its characteristic like its name, it exists or not, it’s a folder or file,...
Second, then, we can read or write from/to this file.

Github: https://github.com/nlinhvu/java-io-de...

Java We Knew 101 Series:    • Java We Knew 101  

References:
Understanding the Main Java I/O Concepts in dev.java: https://dev.java/learn/java-io/intro/
Accessing Resources using Paths in dev.java: https://dev.java/learn/java-io/file-s...
Working with Paths in dev.java: https://dev.java/learn/java-io/file-s...

(00:00): Introduction
(02:44): History
(06:44): Path (Java NIO2) vs File (Java I/O)
(09:44): Refactor File to Path
(10:18): Methods to manipulate File
(15:10): Corresponding methods to manipulate Path
(21:08): Confirm that File methods do not scale
(24:42): Limit the maximum memory of JVM to 16MB by -Xmx16m
(27:27): Remember to close DirectoryStream


On this page of the site you can watch the video online Java I/O File Handling - Locating the Resource: File (Java IO) vs Path (Java NIO2) with a duration of hours minute second in good quality, which was uploaded by the user Linh Vu 14 July 2024, share the link with friends and acquaintances, this video has already been watched 313 times on youtube and it was liked by 25 viewers. Enjoy your viewing!