0% found this document useful (0 votes)
8 views1 page

Multi-threading and Exception Handling in Java

The document outlines three programming tasks: creating two threads to display numbers in ascending and descending order, implementing a user-defined exception for negative salaries when inputting employee data, and defining a student class with methods to set and display data for five students. Each task includes specific requirements and functionalities. The focus is on multithreading, exception handling, and class design in programming.

Uploaded by

nmahadik032
Copyright
© All Rights Reserved
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% found this document useful (0 votes)
8 views1 page

Multi-threading and Exception Handling in Java

The document outlines three programming tasks: creating two threads to display numbers in ascending and descending order, implementing a user-defined exception for negative salaries when inputting employee data, and defining a student class with methods to set and display data for five students. Each task includes specific requirements and functionalities. The focus is on multithreading, exception handling, and class design in programming.

Uploaded by

nmahadik032
Copyright
© All Rights Reserved
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

Programs repeated m

Write a program to create two threads. One thread will display 6


the numbers from 1 to 50 (ascending order) and other thread will
display numbers from 50 to 1 (descending order).
Write a program to input name and salary of employee and throw 6
user defined exception if entered salary is negative.
Define a class student with int id and string name as data 4
members and a method void SetData ( ). Accept and display the
data for five students.

You might also like