Sardar Patel University, Balaghat
Department of Computer Science and Engineering
Practical List
Subject: Principle of Programming Language
2024-2025
Practical Program List
1. Write a Java program to accept a number from the user and print its factorial.
2. Write a Java program to accept three numbers from the user and print the largest number.
3. Write a Java program to print first 10 prime numbers.
4. Write a Java program to accept any digit number from the user and print its reverse.
5. Write a Java program to accept any 10 numbers from the user to store it in an Array and print
the largest of all.
6. Write a Java program to display the following using pattern up to n terms.
1
22
333
4444
7. Write a Java program to accept a number from the user and search that number in array of
numbers.
8. Write a Java program to accept any 10 numbers and arrange them in ascending order using
Bubble Sort method.
9. Write a Java program to accept 10 names from the user to store them in array of string and
print them in Alphabetical order.
10. Write a program in java to input N number in an array and print out the Armstrong number
from the set.
11. Write Java program for the following matrix operations:
Addition of two matrices.
Multiplication of two matrices.
Input the element of matrices from user.
12. Write a Java program to demonstrate class and object.
13. Write a Java program to demonstrate object references.
14. Write a Java program to demonstrate method overriding and method overloading.
15. Write a Java program to demonstrate Constructor.
16. Write a Java program to demonstrate multilevel inheritance.
17. Write a Java program to demonstrate multithreading.
18. Write a Java program to demonstrate java package.
19. Write a Java program to draw lines and box using Applet.
20. Write a java program to draw circle and ellipse using Applet.