O'Reilly logo

Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7 Certification Guide by Tushar Sharma, S G Ganesh

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 8

image

Java I/O Fundamentals

9781430247647_unFig08-01.jpg

In this chapter, we’ll introduce you to the fundamentals of Java I/O programming. We’ll cover two topics: how to read and write data from console, and then how to use (file) streams to read and write data.

Programming with I/O involves writing some exception-handling code as well. If you’re not familiar with the basics of exception handling, such as how to use try-catch-finally blocks or try-with-resources statements, we recommend that you to read the first three sections in the chapter on exception handling ...

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