Learn Java practically
and Get Certified.
Popular Tutorials
Start Learning JavaCreated with over a decade of experience.
Certification Courses
Created with over a decade of experience and thousands of feedback.
Learn Java practically
and Get Certified.
Try Programiz PRO!
Learn Java practically
and Get Certified.
The best way to learn Java programming is by practicing examples. The page contains examples on basic concepts of Java. You are advised to take the references from these examples and try them on your own.
All the programs on this page are tested and should work on all platforms.
Want to learn Java by writing code yourself? Enroll in our Interactive Java Course for FREE.
Popular Examples
- Java Program to Check Leap Year
- Java Program to Check Whether a Number is Positive or Negative
- Java Program to Check Whether a Character is Alphabet or Not
- Java Program to Calculate the Sum of Natural Numbers
- Java Program to Find Factorial of a Number
- Java Program to Generate Multiplication Table
- Java Program to Display Fibonacci Series
- Java Program to Find GCD of two Numbers
- Java Program to Find LCM of two Numbers
- Java Program to Display Alphabets (A to Z) using loop
- Java Program to Count Number of Digits in an Integer
- Java Program to Reverse a Number
- Java Program to Calculate the Power of a Number
- Java Program to Check Palindrome
- Java Program to Check Whether a Number is Prime or Not
- Java Program to Display Prime Numbers Between Two Intervals
- Java Program to Check Armstrong Number
- Java Program to Display Armstrong Number Between Two Intervals
- Java Program to Display Factors of a Number
- Java Program to Make a Simple Calculator Using switch...case
- Java Program to Count the Number of Vowels and Consonants in a Sentence
- Java Program to Sort Elements in Lexicographical Order (Dictionary Order)
- Java Code To Create Pyramid and Pattern