---
type: archive
area: archive
status: archived
date: 2026-05-03
created: 2026-05-03
updated: 1980-01-01
tags:
  - archive
---
- java.nio package is the new api stores the classes.
- Base Classes are InputStream and ouTputStream.
- Flush to force data throw if they are cached or anything
- Read method return "-1" when we reach the end
- ![[img-20240816-161827-cd4e4cc8.png]]
- ![[img-20240820-183941-7ff96fe4.png]]
- There is a special java class that provides access to the system console with operations.
- PrintSream binary, it performs text to binary transform internally.
- PrintWriter it's text output 
- ReadPassword used when a password is typed by user
- While reading text we should pass Charset 'encoding used in the text'
- ![[img-20240816-164751-2f8ef436.png]]
- ![[img-20240816-165350-9a8df86c.png]]
- Vars of varialble marked as transient are not serialized
- ![[img-20240816-165800-a8dd554c.png]]
- We can encrypt serialized data using hashing
-  ![[img-20240816-174817-5c73e088.png]]
- Serialization is not good for long term storage
- Files provide actions to navigate file system
- Path only describe file system
- Create Temporary files created a temp file and wit will automatically deleted after existing java program .
- resolveSibling() change the path to another desired path of a file 
- toRealPath() used to verify existance of a Path
- Walk() method return a stream object that we can do all stream operations with it
- 