O'Reilly logo

Programming with Java by Sunil Patekar, Mahesh Bhave

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 17

FILES

The ability of the computer to store alphanumeric data, graphic images, and so on in files, and its ability to retrieve the contents has revolutionized applications in almost all aspects of life. Therefore, life without files is unimaginable.

Even the programs which we write are stored in files. We write our programs in .java file. It is a text file. We compile our program and create .class file. It is a bytecode file. A file is nothing but a sequential collection of bytes stored with a name.

In Windows OS, file names have optional extension. It helps in identifying the nature of contents of the file. A .class extension tells us that this is a bytecode file. A .wav extension tells us that the file contains sound.

In this chapter, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required