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 ComputerFirst 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 count no. of object created of a classA program in Java create a class that will at least import two packages and use the method defined in the classes of those packages.
A program in Java to create a class customer having three attributes name, bill and id. Include appropriate methods for taking input from customer and displaying its values.
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 create user defined exception.
A program in Java to demonstrate the concept of method overriding.
A program in Java to demonstrate the use of an array.
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.
Write a program in java to make a hut in java applet.
Program to generate Fibonacci series.