Java Programs
BCA NOTE BY :- MANMOHAN YADAV
Java Programs
Java is another powerful and
secure programming language, in this page we're trying to cover some simple,
important, loop and array programs that will help you building flow how Java
works. In order to play java programs on your computer, following are some
steps to install Java.
Steps To install Java On Your
Computer
First of all download JDK(Java Development Kit) on your
computer
After installation click on
start menu after that click on run and type cmd and press enter, Now open the
folder where your Java programs are saved. For example suppose my programs are
saved in java folder in c, Now type on command prompt
Now change directory using
command cd java and press enter, Now you are in the java folder on c drive,
after that you have to give the path where your JDK is installed after this you
are ready to make and execute your program in java
Some important programs in Java.
A program in Java to create thread by extending thread class.
A program in Java to create thread by implementing runnable interface.
A program in Java to demonstrate the concept of method overriding.
A program in Java to show concept of multilevel inheritance.
A program in Java to show the concept of method overloading.
A program in Java to take two numbers as input from command line interface and display their sum.
Some looping programs in Java.
- Print table with the help of loop
- Printing Numbers In Diamond Shape
- Write a program to print no's in the shape of pyramid
- Write a program to print the series
- Write a program to print the series of
22
333
4444
55555
12345
1234
123
12
1
55555
4444
333
22
1
1234321
123321
121
1
1
121
12321
1234321
123454321
1
12
123
1234
12345
12345
2345
345
45
4
1
23
456
78910
11 12 13 14 15
Some array programs in Java.
Create An Array Of 3*3 Matrix & Print It Again Along Column Wise Total.
Create An Array Of 3*3 Matrix & Print It Again Along With Row Wise Total.
Receive An Array, 3*3 Matrix Pass Values To It & After Then Print That.
Some
simple programs in Java .
Comments
Post a Comment