Java Programs

To understand a programming language you must practice the programs, this way you can learn the language faster. This page includes java programs on various java topics such as control statements, loops, classes & objects, functions, arrays etc. All the programs are tested and provided with the output.

Java 14 Features
Java Basic Programs
Java Program to Add two Numbers
Java Program to Check Even or Odd Number
Java Program to add two binary numbers
Java Program to add two complex numbers
Java Program to Multiply two Numbers
Java Program to Multiply two Floating Numbers
Java Program to Swap two Numbers
Java Program to check Leap Year
Java Program to check whether input character is vowel or consonant
Java Program to calculate compound interest
Java Program to calculate simple interest
Java Program to find quotient and remainder
Java Program to calculate power of a number
Java Program to Duplicate Values in Array
Java Programm To Sum Of Natural Numbers
Java Program To Round Double/Float values
Java Program To Check Prime Number
Java Program To Find Factorial Of Number
Java Program to Find GCD of two Numbers
Java Program to Find LCM of two Numbers
Java Program to Generate Multiplication Table
Java Program to Calculate the Power of a Number
Java Program to Check Number is Armstrong
JAVA IO Examples
How to convert InputStream to String in Java?
How to Create New File in Java?
How to get File Size in Java?
How to Create Read Only File in Java?
How to get File Extension in Java?
How to get absolute File Path in Java?
Other Java Programs
Java Program to Print an Integer (Which is entereed by User)
Java Program To Print an Array
Java Program To Sort an Array
Encryption vs Decryption JAVA
Encryption/Decryption example - java
What is Polymorphism, Types of Polymorphism, Examples - java
Java HttpServer Example