Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Java
10.1k+ articles
Java-Functions
4.1k+ articles
Competitive Programming
2.3k+ articles
Java Programs
2.1k+ articles
Java - util package
1.5k+ articles
School Programming
1.4k+ articles
java-basics
310+ articles
java-stream
130+ articles
Java-Library
66 articles
java-file-handling
34 articles
Java-I/O
75 posts
Popular Articles
Recent Articles
Java Exercises - Basic to Advanced Java Practice Programs with Solutions
Last Updated: 02 January 2025
Looking for Java exercises to test your Java skills, then explore our topic-wise Java practice exercises? Here you will get 25 plus practic
...read more
Output of Java Program
Java
Java-Library
Java-Output
Java-I/O
java-basics
Java-Object Oriented
Java-Strings
Java-Arrays
Java-Data Types
Java-Functions
Java Programs
FileOutputStream in Java
Last Updated: 10 March 2025
In Java, the FileOutputStream class is a subclass of OutputStream. It is used to write data to a file as a stream of bytes. FileOutputStream
...read more
Java
Java-I/O
Java-File Class
Serializable Interface in Java
Last Updated: 24 November 2020
The Serializable interface is present in java.io package. It is a marker interface. A Marker Interface does not have any methods and fields.
...read more
Java
Java-Collections
Java-I/O
Similar Topics
Java
10.1k+ articles
Java-Functions
4.1k+ articles
Competitive Programming
2.3k+ articles
Java Programs
2.1k+ articles
Java - util package
1.5k+ articles
School Programming
1.4k+ articles
java-basics
310+ articles
java-stream
130+ articles
Java-Library
66+ articles
java-file-handling
34+ articles
print vs println in Java
Last Updated: 20 November 2024
print() and println() are the methods of System.out class in Java which are used to print the output on the console. The major difference be
...read more
Java
Technical Scripter
Java-I/O
java-basics
School Programming
How to Read and Print an Integer Value in Java?
Last Updated: 09 April 2025
The given task is to take an integer as input from the user and print that integer in Java.To read and print an integer value in Java, we ca
...read more
Java
Java-I/O
Java-Integer
Java Program to Count the Number of Lines, Words, Characters, and Paragraphs in a Text File
Last Updated: 05 October 2021
Counting the number of characters is essential because almost all the text boxes that rely on user input have certain limitations on the num
...read more
Java
Java-I/O
java-file-handling
Delete a File Using Java
Last Updated: 10 January 2025
Java provides methods to delete files programmatically. In contrast to normal delete operations in any operating system, files being deleted
...read more
Java
Java-Library
Java-I/O
java-file-handling
Java.io.BufferedReader Class in Java
Last Updated: 03 May 2022
Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.
...read more
Java
Java-I/O
Java-Classes
Java.io.InputStream Class in Java
Last Updated: 28 March 2024
Java InputStream class is the superclass of all the io classes i.e. representing an input stream of bytes. It represents an input stream of
...read more
Java
Java-I/O
java-stream
Java File Class
Last Updated: 02 January 2025
Java File class is a representation of a file or directory pathname. Becausefile and directory names have different formats on different pla
...read more
Java
Java-I/O
java-file-handling
Character Stream Vs Byte Stream in Java
Last Updated: 09 August 2022
A stream is a sequence of data. I/O Stream refers to a stream that is unlikely a method to sequentially access a file. I/O Stream means an i
...read more
Java
Java-I/O
java-stream
Java-Stream-programs
Ways to Read Input from Console in Java
Last Updated: 14 January 2025
In Java, there are four different ways to read input from the user in the command line environment(console).1. Using Buffered Reader ClassBu
...read more
Java
Technical Scripter
Java-I/O
Fast I/O in Java in Competitive Programming
Last Updated: 17 January 2025
In competitive programming, fast input and output (I/O) are essential to avoid time limit exceeded (TLE) errors. Java can be slower for I/O
...read more
Java
Competitive Programming
Java-I/O
Java BufferedReader vs Scanner Class
Last Updated: 07 January 2025
Java provides several classes for reading input but two of the most commonly used are Scanner and BufferedReader. The main difference betwee
...read more
Java
Java-I/O
Scanner Class in Java
Last Updated: 11 April 2025
In Java, the Scanner class is present in the java.util package is used to obtain input for primitive types like int, double, etc., and strin
...read more
Java
Java-I/O
Java-Scanner
1
2
3
4
5
>>
Last
1
2
3
4
5
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !