You are on page 1of 1

1. Write a program in Java to print “Hello World”.

2. Write a program in Java to print Area of a triangle.

3. Write a program in Java to print Fibonacci series till number N.

4. Write a program in Java to create a class Student with data name, Roll.no and age along with a

method to display the data. Create two objects to access Student data.

5. Write a program in Java to create a class with a constructor.

6. Write a program in Java to demonstrate the method overloading.

7 Write a program in Java to demonstrate the constructor overloading.

8. Write a Java program to illustrate the concept of single inheritance.

9. Write a Java program to demonstrate method overriding in Java.

10. Write a Java program to demonstrate use of super with variables.

11. Write a Java program in which you will declare two interface sum and Add inherits these interface

through class A1 and display their content.

12) Write a Java program to demonstrate use of Final variable.

13) Write a Java Program to find the average of numbers in an array.

14) Write a program in Java if number is less than 10 and greater than 50 it generate the

exception out of range. Else it displays the square of number.

15) Write a Java program to create package.

15b) Write a Java program that import the package name.

16) Write a Java program to create a thread.

17) Write a Java program to create a file and write the text in it and save the file.

You might also like