Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Java OOP

Rating
-
Sold
-
Pages
85
Uploaded on
09-05-2022
Written in
2021/2022

Java OOP concepts java-io Array Polymorphism Methods Class-Obj-Me

Institution
Course

Content preview

OBJECT ORIENTED
PROGRAMMING
Streams and Files




Salvatore Distefano


,Introduction


■ Data stored in variables and arrays is temporary
§ It’s lost when a local variable goes out of scope or when the program terminates
■ For long-term retention of data, computers use files.
■ Computers store files on secondary storage devices
§ hard disks, flash drives, DVDs and more.
■ Data maintained in files is persistent data because it exists beyond the duration of
program execution.

,Files and Streams


■ Java views each file as a sequential stream of bytes (Fig. 15.1).
■ Every operating system provides a mechanism to determine the end of a file, such as an
end-of-file marker or a count of the total bytes in the file that is recorded in a system-
maintained administrative data structure.
■ A Java program simply receives an indication from the operating system when it reache
the end of the stream

,

Connected book

Written for

Institution
Course

Document information

Uploaded on
May 9, 2022
Number of pages
85
Written in
2021/2022
Type
Class notes
Professor(s)
Salvatore distefano
Contains
All classes

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
theibman

Get to know the seller

Seller avatar
theibman University of Messina
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions