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.2k+ articles
Java-Functions
4.1k+ articles
Java Programs
2.1k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Java-time package
570+ articles
Java-lang package
390+ articles
Java 8
100+ articles
java-interfaces
77 articles
Java-StringBuilder
35 articles
java-basics
310+ 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
Java User Input - Scanner Class
Last Updated: 22 April 2025
The most common way to take user input in Java is using the Scanner class. It is a part of java.util package. The scanner class can handle i
...read more
Java
java-basics
Learn Java - A Beginners Guide for 2024
Last Updated: 02 January 2025
If you are new to the world of coding and want to start your coding journey with Java, then this learn Java a beginners guide gives you a c
...read more
Java
java-basics
Java 8
How To
Tutorials
Java Roadmap
Similar Topics
Java
10.2k+ articles
Java-Functions
4.1k+ articles
Java Programs
2.1k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Java-time package
570+ articles
Java-lang package
390+ articles
Java 8
100+ articles
java-interfaces
77+ articles
Java-StringBuilder
35+ articles
Prime Number Program in Java
Last Updated: 07 April 2025
A prime number is a natural number greater than 1, divisible only by 1 and itself. Examples include 2, 3, 5, 7, and 11. These numbers have n
...read more
Java
java-basics
Java Programs
Java 8 | Consumer Interface in Java with Examples
Last Updated: 17 September 2021
The Consumer Interface is a part of the java.util.function package which has been introduced since Java 8, to implement functional programmi
...read more
Java
java-basics
Java - util package
Java Programs
Java 8
How to Start Learning Java?
Last Updated: 22 January 2025
Java is one of the most popular and widely used programming languages and platforms. A platform is an environment that helps to develop and
...read more
Java
GBlog
java-basics
Picked
Listicles
Different Ways to Create Objects in Java
Last Updated: 28 March 2025
Java is an object-oriented programming language where objects are instances of classes. Creating objects is one of the most fundamental conc
...read more
Java
java-basics
Decision Making in Java (if, if-else, switch, break, continue, jump)
Last Updated: 16 April 2025
Decision-making statements in Java execute a block of code based on a condition. Decision-making in programming is similar to decision-makin
...read more
Java
java-basics
Java Identifiers
Last Updated: 15 April 2025
An identifier in Java is the name given to Variables, Classes, Methods, Packages, Interfaces, etc. These are the unique names used to identi
...read more
Java
java-basics
Setting up Environment Variables For Java - Complete Guide to Set JAVA_HOME
Last Updated: 07 March 2025
In the journey to learning the Java programming language, setting up environment variables for Java is essential because it helps the system
...read more
Java
TechTips
java-basics
School Programming
Command Line Arguments in Java
Last Updated: 02 January 2025
Java command-line argumentis an argument i.e. passed at the time of running the Java program. In Java, the command line arguments passed fro
...read more
Java
java-basics
Scope of Variables in Java
Last Updated: 05 May 2025
The scope of variables is the part of the program where the variable is accessible. Like C/C++, in Java, all identifiers are lexically (or s
...read more
Java
java-basics
Annotations in Java
Last Updated: 25 October 2022
Annotations are used to provide supplemental information about a program.Annotations start with ‘@’.Annotations do not change the action
...read more
Java
java-basics
Variable Arguments (Varargs) in Java
Last Updated: 02 January 2025
Variable Arguments (Varargs) in Java is a method that takes a variable number of arguments. Variable Arguments in Java simplify the creation
...read more
Java
java-basics
'this' reference in Java
Last Updated: 08 January 2024
In Java, 'this' is a reference variable that refers to the current object, or can be said "this" in Java is a keyword that refers to the cur
...read more
Java
java-basics
School Programming
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
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 !