Skip to content
geeksforgeeks
  • 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
Similar Topics
Java
10.4k+ articles
Java Programs
2k+ articles
Java-Collections
1.1k+ articles
Java-Strings
220+ articles
Java-Arrays
160+ articles
java-regular-expression
90 articles
JDBC
80 articles
java-TreeMap
74 articles
Java-Files
66 articles
Java-Networking
45 articles

Java Examples

230+ posts
How to Create a simple TCP Client-Server Connection in Java?
Last Updated: 04 April 2024
TCP can be defined as Transmission Control Protocol. This is the standard protocol for transmitting data over a network. It provides reliabl...read more
image
Java
Java-Networking
Java Programs
Picked
Java Examples
How to Implement a Simple Chat Application Using Sockets in Java?
Last Updated: 08 January 2025
In this article, we will create a simple chat application using Java socket programming. Before we are going to discuss our topic, we must k ...read more
Java
Java-Networking
Java Programs
Picked
Java Examples
How to Convert a String to a Character in Java?
Last Updated: 20 November 2024
String and char are fundamental and most commonly used datatypes in Java. A String is not a primitive data type like char. To convert a Stri ...read more
Java
Java-Strings
Java Programs
Picked
Java Examples
Similar Topics
Java
10.4k+ articles
Java Programs
2k+ articles
Java-Collections
1.1k+ articles
Java-Strings
220+ articles
Java-Arrays
160+ articles
java-regular-expression
90+ articles
JDBC
80+ articles
java-TreeMap
74+ articles
Java-Files
66+ articles
Java-Networking
45+ articles
How to Execute a SQL Query Using JDBC?
Last Updated: 24 April 2025
Java programming provides a lot of packages for solving problems in our case we need to execute SQL queries by using JDBC. We can execute a ...read more
image
Java
JDBC
Java Programs
Picked
Java Examples
How to Handle an IOException in Java?
Last Updated: 15 February 2024
An IOException in Java occurs when we try to perform some input or output tasks and then some issues occur. Programmers need to handle this ...read more
Java
Java-Exceptions
Java-Exception Handling
Java Programs
Picked
Java Examples
How to Read and Write Binary Files in Java?
Last Updated: 06 May 2025
The Binary files contain data in a format that is not human-readable. To make them suitable for storing complex data structures efficiently, ...read more
Java
Java Programs
Picked
Java-Files
Java Examples
How to Read and Write JSON Files in Java?
Last Updated: 10 October 2024
JSON (JavaScript Object Notation) is simple but powe­rful.. It helps the server and the client to share information. Applications like­ Ja...read more
image
Java
Java Programs
JSON
Picked
Java-JSON
Java Examples
How to Replace a String Using Regex Pattern in Java?
Last Updated: 07 February 2024
Regular Expressions (regex), in Java, are a tool, for searching, matching, and manipulating text patterns. Regex patterns are usually writte ...read more
Java
Java Programs
Picked
Java-String-Programs
Java Examples
Java Program to Capitalize the First Letter of Each Word in a String
Last Updated: 07 February 2024
In Java Programming, we can be able to capitalize the first letter of each word in the given String value by using toUpperCase(), toLowerCas ...read more
Java
Java Programs
Picked
Java-String-Programs
strings
Java Examples
How to List all Files in a Directory in Java?
Last Updated: 24 April 2025
Java provides a feature to interact with the file system through the java.io.file package. This feature helps developers automate the things...read more
image
Java
Java Programs
Picked
Java Examples
Java Program to Convert a String to a Currency Format
Last Updated: 07 February 2024
The NumberFormat and DecimalFromat class in Java offers a method for formatting numbers based on a location. We can define the formatting cu ...read more
Java
Java Programs
Picked
Java Concurrency
Java Examples
How to Convert JSON Array Object to Java Object?
Last Updated: 24 April 2025
JSON arrays are useful for storing multiple values together that are related or part of the same set. For example, storing a list of items, ...read more
image
Java
Java Programs
Picked
Java-JSON
Java Examples
How to Read and Write XML Files in Java?
Last Updated: 24 April 2025
XML is defined as the Extensible Markup Language, and it is mostly used as a format for storing and exchanging data between systems. To read...read more
image
Java
Java Programs
Picked
Java-Files
Java XML
Java Examples
Convert String to LocalDate in Java
Last Updated: 29 January 2024
In this article, we will learn how to convert a String into Local Date format in Java. It will need to take a data value as a String after t ...read more
Java
Java-Strings
Java Programs
Picked
Java-Date-Time
Java-LocalDateTime
Java Examples
Java Programs - Java Programming Examples
Last Updated: 05 April 2025
In this article, we will learn and prepare for Interviews using Java Programming Examples. From basic Java programs like the Fibonacci serie...read more
image
Java
Java Programs
Java Examples
1 2 3 4 5 6 7 8 >>
Last
1 2 3 4 5 6 >>
Last
1 2 3 4 >>
Last
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
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
Lightbox