The document is an index of programming tasks and exercises primarily focused on Java. It includes a variety of tasks such as reading user input, performing mathematical operations, creating classes, handling exceptions, and working with arrays and strings. Each task is numbered and includes a brief description of the programming requirement.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views1 page
Index
The document is an index of programming tasks and exercises primarily focused on Java. It includes a variety of tasks such as reading user input, performing mathematical operations, creating classes, handling exceptions, and working with arrays and strings. Each task is numbered and includes a brief description of the programming requirement.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
INDEX
S.R NAME PAGE DATE SIGN
NO. 1 Write a program to read two numbers from user and print their product. 2 Write a program to print the square of a number passed through command line arguments. 3 Write a program to send the name and surname of a student through command line arguments and print a welcome message for the student. 4 Write a java program to find the largest number out of n natural numbers. 5 Write a java program to find the Fibonacci series & Factorial of a number using recursive and non recursive functions. 6 Write a java program to multiply two given matrices.
7 Write a Java program for sorting a given list of names in
ascending order. 8 Write a Java program that checks whether a given string is a palindrome or not. 9 Write a java program to read n number of values in an array and display. 10 Create a JAVA class called Student.
11 Write a Java program that displays the number of characters,
lines and words in a text. 12 Write a Java program to create a class called Shape with methods called getPerimeter() and getArea(). 13 Write a Java program to create a class Employee with a method called calculateSalary(). 14 Write a Java program using an interface called ‘Bank’ having function ‘rate_of_interest()’. 15 Write a Java package program for the class book and then import the data from the package and display the result. 16 Write a Java program for finding the cube of a number using a package for various data types and then import it in another class and display the results. 17 Write a Java program for demonstrating the divide by zero exception handling. 18 Write a Java program that reads a list of integers from the user and throws an exception if any numbers are duplicates. 19 Create an exception subclass UnderAge, which prints “Under Age” along with the age value when an object of UnderAge class is printed in the catch statement.