Java

Java is a simple, secured, high level, platform-independent, multithread, Object-oriented programming language.

 

It’s one of the most popular and widely used programming language, platform, and technology. Java is not only a language it is also a platform and technology.

 

Related Pages:-

DataInputStream in Java

The DataInputStream class in Java used to read data in primitive type size bytes from the underlying InputStreams. It has special methods to read primitive type size bytes. It is a subclass of FilterInputStream and implements the DataInput interface. FilterInputStream is the subclass of InputStream. These all classes are available from Java 1.0 version onwards. […]

DataInputStream in Java Read More »

FileNotFoundException in Java

FileNotFoundException is a checked exception therefore we must catch or handle it. It is a subclass of IOException and is defined in the java.io package. Generally, FileNotFoundException will be thrown by the FileInputStream, FileReader, and RandomAccessFile constructors, where file information is the source and must be passed to the constructor. Here we will discuss the

FileNotFoundException in Java Read More »

DataOutputStream in Java

The DataOutputStream in Java used to write data in primitive type size bytes from the underlying OutputStreams. It has special methods to write primitive type size bytes. It is a subclass of FilterOutputStream and implements the DataOutput interface. FilterOutputStream is the subclass of OutputStream. These all classes are available from Java 1.0 version onwards. OutputStream

DataOutputStream in Java Read More »

FileInputStream in Java

FileInputStream in Java is used to read binary data from the file. It is a sub class of InputStream class and available from java 1.0 version on wards. Differenent constructors in FileOutputStream are, public FileInputStream(String name) throws FileNotFoundException public FileInputStream(File file) throws FileNotFoundException public FileInputStream(FileDescriptior fdObj) No param constructor is not given in the FileInputStream

FileInputStream in Java Read More »

Java FileOutputStream

FileOutputStream class in Java is used to write binary data to the file. It is a subclass of OutputStream class and it is available from java 1.0 version onwards. It is used to writing data into a file in a binary format one byte at a time. These data can be number, character, boolean, image

Java FileOutputStream Read More »

OutputStream in Java

OutputStream class in Java is an abstract class that is meant for writing the binary data from Java application to a file/console/network. It is a superclass of all output stream classes used to write binary data and contains methods for writing binary data into the file/console/network. It implements a Closeable and Flushable interface. public abstract

OutputStream in Java Read More »

InputStream in Java

InputStream class in Java is an abstract class that is meant for reading binary data from a file to a Java application. It is the superclass of all Java Input stream classes and contains methods for reading binary data from the file. InputStream class in Java is defined in java.io package and it implements the

InputStream in Java Read More »

IOStream in Java

IOStream in Java | In Java, All pre-defined classes belonging to the java.io package are called IOStream. IOStream is meant for storing the data permanently to the file, performing persistence operations on a file, reading values from the keyboard, and displaying values to the console. I => Input, O => Output, Stream => Connection. It

IOStream in Java Read More »

PrintWriter in Java

In Java, the PrintWriter class is the most enhanced Writer to write character or text data to the file. The biggest advantage of PrintWriter over FileWriter and BufferedWriter is:- we can write any primitive data directly with or without a newline character, and methods of PrintWriter class never throw IOExceptions. It is defined in the

PrintWriter in Java Read More »