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 Print an Integer (Entered by the User)
- Java Program to Add Two Integers
- Java Program to Multiply two Floating Point Numbers
- Java Program to Find ASCII Value of a character
- Java Program to Compute Quotient and Remainder
- Java Program to Swap Two Numbers
- Java Program to Check Whether a Number is Even or Odd
- Java Program to Check Whether an Alphabet is Vowel or Consonant
- Java Program to Find the Largest Among Three Numbers
- Java Program to Find all Roots of a Quadratic Equation
- Java Program to Find the Frequency of Character in a String
- Java Program to Remove All Whitespaces from a String
- Java Program to Round a Number to n Decimal Places
- Java Program to Check if a String is Empty or Null