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:-

BufferedReader in Java

In Java, BufferedReader class is the most enhanced way to read the character or text data from the file/keyboard/network. The main advantage of BufferedReader compared to FileReader class is:- In addition to the single character, we can also read one line of data. The BufferedReader class is defined in the java.io package and it is […]

BufferedReader in Java Read More »

Java BufferedWriter

The BufferedWriter class in Java used to write character or text data to the file/console/network. The BufferedWriter class is defined in the java.io package and it is a subclass of Writer class. Since BufferedWriter is a connection based, where one end is a Java application and another end is a file or console. We must

Java BufferedWriter Read More »

Java FileReader

The FileReader class in Java is used to read character or text data from the file. It is defined in the java.io package and it is a subclass of InputStreamReader class. The InputStreamReader is the subclass of the Reader class. Both the InputStreamReader and Reader classes are abstract classes. All these classes were introduced in

Java FileReader Read More »

FileWriter in Java

The FileWriter class in Java is used to write character/text data to the file/console/network. It is defined in java.io package and it is a subclass of OutputStreamWriter. The OutputStreamWriter class is a subclass of the Writer class. Both OutputStreamWriter and Writer classes are abstract classes. public class FileWriterextends OutputStreamWriter Constructors Since FileWriter is a connection

FileWriter in Java Read More »

InputStreamReader in Java

The InputStreamReader class in Java is an abstract class defined in java.io package. It is extended from Reader class and introduced in Java 1.1 version. public class InputStreamReaderextends Reader The InputStreamReader is a bridge from byte streams to character streams. It reads bytes and decodes them into characters using a specified charset. It has multiple

InputStreamReader in Java Read More »

Reader Class in Java

The reader class in Java is an abstract class defined in java.io package and superclass for all character input streams. The reader class and all its subclasses were introduced in Java 1.1. It implements Readable, and Closeable marker interfaces. Reader interface defines read() method and Closable interface defines close() method. public abstract class Readerextends Objectimplements

Reader Class in Java Read More »

Writer Class in Java

The Writer class in Java is an abstract class defined in the java.io package and superclass for all character output streams. The writer and all its subclasses were introduced in Java 1.1 version. It implements Appendable, Closeable, and Flushable interfaces, they have append() with overloaded forms, close(), and flush() methods respectively. public abstract class Writerextends

Writer Class in Java Read More »

File Class in Java

The File class in Java is used to represent the files and directories paths but not the data of the file. Basically, this class is used to create, delete, and rename the files and directories. It is also used to know the information about the files and directories like the given name represents file or

File Class in Java Read More »

Java Program to Create File

In Java, we can create a file either in the current working directory or in some other location. Similar to the file we are also able to create a directory in the current working directory or in some other given location. Different methods to create file or directory are, Return Type Method Description boolean createNewFile()

Java Program to Create File Read More »