Saturday, March 4, 2017

What are the classes in Java IO package?

What are the classes in Java IO package?

In this post we are going to see the classes of Java IO Packages.

The meaning of IO is input/output, in this package we have classes for input and output operations in Java API.

Java is very flexible API and programming language, it provides APIs for large types of functionality. The Java IO package is one of the most useful APIs.

All the developers learning Java must learn the Java IO package.

In Java IO package there are two types of classes:


  • Input stream - classes of reading data
  • Output stream - these classes are used for writing
With the help of these classes  developer can perform read and write operations from their Java program.

You can check the Java Read file Line by Line tutorial which teaches how to read a big text file in Java efficiently.

Other example of reading file are:


  • How To Read File In Java with BufferedReader

  • Now let's come to the Java IO classes, Lets see some of the features of Java io packages:


    • Ready to use classes and interfaces for input and output operations
    • Classes for both binary and text operations are available
    • Buffered reader and writer classes are available to fast operations
    • All the types of file operations can be performed using Java IO packages
    • Stream input and output is also supported
    Check Classes and Interfaces of the I/O Streams classes for complete details and tutorials.

    Thanks



    No comments: