0% found this document useful (0 votes)
205 views

Java Programming Examples With Output - KNOW PROGRAM

This document provides examples of basic Java programs to learn Java programming concepts. It includes examples for Hello World, arithmetic operations, flow control programs, conversions, number programs, strings, and series. The examples cover basic concepts like variables, data types, conditional statements, loops, functions, and classes. Subscribing to the newsletter provides the latest tutorials and programs to improve Java skills.

Uploaded by

Rocco Jerry
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
205 views

Java Programming Examples With Output - KNOW PROGRAM

This document provides examples of basic Java programs to learn Java programming concepts. It includes examples for Hello World, arithmetic operations, flow control programs, conversions, number programs, strings, and series. The examples cover basic concepts like variables, data types, conditional statements, loops, functions, and classes. Subscribing to the newsletter provides the latest tutorials and programs to improve Java skills.

Uploaded by

Rocco Jerry
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

7/28/2020 Java Programming Examples With Output – KNOW PROGRAM

KNOW PROGRAM

Java Programming Examples With Output


Learn Java Programming Language through examples. Develop java basic programs to understand the
basic concepts of Java. These are the basic Java programs examples with output. After learning the
procedure to develop the program try to develop it on your own and then compare the code given on the
website.

Java basic programs


Java Hello World program
Addition Program
Calculate Simple Interest
Calculate Compound Interest
Display ASCII value

Calculate Area of Circle


Find Area of Rectangle
Find Area of Triangle
Swapping of Two Numbers

Java Programming Examples on Flow Control


Check Even number
Check Odd Number
Java Program to Check Even Odd
Find Greatest of three numbers
Leap year program in Java

Print Multiplication table


Find Reverse of a number
Find Factors of a number
LCM of two numbers
HCF of two numbers
https://www.knowprogram.com/java-programming-examples/ 1/6
7/28/2020 Java Programming Examples With Output – KNOW PROGRAM

Roots of a quadratic equation


KNOW PROGRAM
Square Root of a Number
Perfect Square Program
Simple Calculator Program
BMI (Body Mass Index) Calculator
Factorial of a Number
Factorial Using Recursion

Basic Conversion

Celsius to Fahrenheit
Fahrenheit to Celsius
Decimal to Octal
Octal to Decimal

Java programming examples on Sum

Sum of digits of a number


The sum of N Natural numbers

The sum of even digits in a number


Sum of odd digits in a number
Sum of rst & last digit of a number
The Sum of Digits Until Single Digit

Series

Fibonacci Series
Fibonacci Series using Recursion

Numbers

Odd number Perfect number

Even number Neon number

Prime number Automorphic number

Twin prime number Magic Number

Palindrome number Tech Number

https://www.knowprogram.com/java-programming-examples/ 2/6
7/28/2020 Java Programming Examples With Output – KNOW PROGRAM

Armstrong number Kaprekar Number


KNOW PROGRAM
Pronic Number Buzz Number

Duck Number Harshad Number

Evil Number Disarium Number

Spy Number Sunny Number

Strong / Krishnamurthy / Nelson Number


Special Number

String
Sum of digits in a String

Number programs using String

Unique Number
Fascinating Number
ISBN Number

· · ·

Subscribe our newsletter and follow on facebook page to receive the latest tutorial and programs to
improve your programming skills.

Enter your email

Subscribe

· · ·

https://www.knowprogram.com/java-programming-examples/ 3/6
7/28/2020 Java Programming Examples With Output – KNOW PROGRAM

KNOW PROGRAM
Search

Recent Posts

Printf() Quiz in C Set-3

Printf() Quiz in C Set-2

Prinf() Quiz in C Set-1

Quiz on Sizeof Function in C

Quiz on Comma Operators in C

C Quiz on Octal Decimal and Hexadecimal Numbers

Quiz on Increment and Decrement Operators in C

Quiz on Relational and Logical operator in C

Quiz on Arithmetic and Assignment Operators in C

Top Posts

Two Dimensional (2D) Array of Strings in C

C++ Program to Find the Sum and Average of Three Numbers

C Program to nd Grade of a Student Using Switch Statement

C Program to Convert Lowercase Character to Uppercase Character

C++ Program to Calculate Simple Interest

https://www.knowprogram.com/java-programming-examples/ 4/6
7/28/2020 Java Programming Examples With Output – KNOW PROGRAM

C Program to Find Sum and Average of 3 Numbers

KNOW
C++ ProgramPROGRAM
to Add Subtract Divide Multiply of Two Numbers

C Program for Addition Subtraction Multiplication Division using Function

Sum of First and Last Digit of a Number in Java

Learn

Java Tutorial
Java Examples
JDBC
C Tutorial
C Examples
C Quiz
C++ Examples

Company

Home
Blog
About Us
Contact Us

Legal

Disclaimer
Privacy Policy
Terms & Conditions

Contribute

Write an Article
Support Us

https://www.knowprogram.com/java-programming-examples/ 5/6
7/28/2020 Java Programming Examples With Output – KNOW PROGRAM

KNOW PROGRAM

https://www.knowprogram.com/java-programming-examples/ 6/6

You might also like