| Simple Java Programs |
| Sr No |
Name of Programe |
|
| 1 |
Program to Calculate Compound Interest |
|
| 2 |
Program to Calculate Depreciation |
|
| 3 |
Program to Convert Decimal Number to Binary, Octal and Hexadecimal |
|
| 4 |
Program to Convert Fahrenheit into Celsius |
|
| 5 |
Program to Find Roots of Quadratic Equation |
|
| 6 |
Program to Add Two Numbers by Using Command Line Argument |
|
| 7 |
Program to Calculate Square Root of a Number |
|
| 8 |
Program to Print Alphabets from ASCII Value |
|
| 9 |
Program to Print ASCII Value of Alphabets |
|
| |
|
|
Control Statements |
| 1 |
Program to Check Whether the Number is Armstrong or Not |
|
| 2 |
Program to Check Whether the Number is Palindrom or Not |
|
| 3 |
Simple Calculator |
|
| 4 |
Program to Find Largest from Three Numbers |
|
| 5 |
Progarm to Find Numbers Divisble by 7 from 0 to 100 |
|
| 6 |
Progarm to Find Perfect Number from 1 to 100 |
|
| 7 |
Progarm to Find Prime Numbers Between 0 to 100 |
|
| 8 |
Progarm to Print Next Prime Number |
|
| 9 |
Progarm to Find Reverse of a Number |
|
| 10 |
Progarm to Find the Sum of Digits of a Number |
|
| 11 |
Progarm to Print Sum of Series 1+1/2+.......+1/10 |
|
| 12 |
Program to Print Sum of Series 1+x+x2+x3+......+xn |
|
| 13 |
Programe to Print Sum of Series 1-(x/1! +x2/2!+......+xn/n!) |
|
| 14 |
Program to Print the Pattern:
1
2 3
4 5 6
7 8 9 10
|
|
| 15 |
Program to Print the Pattern:
1
1 1
1 0 1
1 0 0 1 |
|
| 16 |
Program to Print the Pattern:
1
0 1
1 0 1
0 1 0 1 |
|
| 17 |
Program to Print the Pattern:
*
* *
* * *
* *
*
|
|
| 18 |
Program to Print the Pattern:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1 |
|
| |
|
|
Array |
| 1 |
Program to Print Numbers From 1 to 100 Using 2D Array |
|
| 2 |
Program to Search an Element From Array |
|
| 3 |
Program to Delete an Element From Array |
|
| 4 |
Program of Merge Sort |
|
| 5 |
Program of Matrix Multipication |
|
| 6 |
Program to Calculate the Transpose of a Matrix |
|
| 7 |
Program to Print Reverse Order of Array |
|
| |
|
|
String |
| 1 |
Example of Array of String |
|
| 2 |
Program which implements StringBuffer Class |
|
| 3 |
Program to Sort a String |
|
| |
|
|
| |
| Recursion |
| 1 |
Program to Calculate Factorial Using Recursion |
|
| |
|
|
| Class and Object |
| 1 |
Program to Calculate Area and Circumference of Circle |
|
| 2 |
Program to Calculate Area of Rectangle |
|
| 3 |
Program to Calculate Number of Votes Received by All Candidates |
|
| 4 |
Program to Calculate Total Numbers of Objects Created For a Class |
|
| 5 |
Program to Calculate Factorial Using Recursion & Class and Object |
|
| 6 |
Program to Print Records of 5 Students in 3 Semesters |
|
| 7 |
Calculate Factorial Using Recursion and OOP (Part-2) |
|
| 8 |
Example of This Keyword |
|
| |
|
|
| Constructor |
| 1 |
Program to Print Largest from Three |
|
| 2 |
Example of Constructor Overloading |
|
| 3 |
Example of BookShop Management |
|
| 4 |
Example of Toll Booth |
|
| |
|
|
| Inheritance |
| 1 |
Program to Implement the Concept of Inheritance (Banking Example) |
|
| 2 |
Example of Multilevel Inheritance |
|
| 3 |
Example of Using Interface (Multiple Inheritance) |
|
| |
|
|
| Packages |
| 1 |
Program to Calculate Cube Using Packages |
|
| |
|
|
| Applet |
| 1 |
Example of Applet Using drawString(),drawOval() and drawRect() |
|
| 2 |
Applet Having Bouncing of a Ball |
|
| 3 |
Applet to calculate to Sum of Two Numbers |
|
| |
|
|
| Exception Handling |
| 1 |
Simple Example of Exception Handling |
|
| 2 |
Example of Multiple Catch in Exception Handling |
|
| 3 |
Example of Using NumberFormatException |
|
| 4 |
How Can You Create Your Own Exception |
|
| |
|
|
| Event Handling |
| 1 |
Program of Event Handling by using ActionListner |
|
| 2 |
Program of Event Handling by using MouseListner |
|
| |
|
|
| Vector Class |
| 1 |
Simple Example of Vector Class |
|
| |
|
|
| MultiThreading |
| 1 |
Example of Multithreading Using Thread Class |
|
| |
|
|