0% found this document useful (0 votes)
23 views

Practical Examination Java Programming

This document outlines 12 programming tasks for a Java practical examination. The tasks include: writing programs to shift an array, define a Book class with methods to read and print book details, illustrate single inheritance, perform arithmetic operations in a class, design a GUI form to read user details, create an applet to display a name, find the maximum of 10 values, handle divide by zero exceptions, illustrate use of the super keyword, display the executing thread name, and demonstrate how a high priority thread delays lower priority threads.

Uploaded by

nirali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Practical Examination Java Programming

This document outlines 12 programming tasks for a Java practical examination. The tasks include: writing programs to shift an array, define a Book class with methods to read and print book details, illustrate single inheritance, perform arithmetic operations in a class, design a GUI form to read user details, create an applet to display a name, find the maximum of 10 values, handle divide by zero exceptions, illustrate use of the super keyword, display the executing thread name, and demonstrate how a high priority thread delays lower priority threads.

Uploaded by

nirali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Practical examination

Java Programming
1. Write a java program to read an array of 10 elements and shift downwards.
2. Define a class Book with bookid, bookname, price and author. Instantiate class to
initialize data members. Write method to read book details and print the details.
3. Write a java program to illustrate single level inheritance.
4. Define a class arithmetic having integer data members and methods to perform
arithmetic operation.
5. Write a java program to design a GUI form reading user details such as name
email, gender and city from user.
6. Write a program to create an applet to display your name.
7. Write a java program to read 10 values and find maximum.
8. Write a program to handle divide by zero exception
9. Write a program to illustrate use of super keyword.
10.Write a program in java to display the name of thread that execute main.
11.Write a java program to demonstrate that as a high priority thread executes it
will delay the execution of all lower priority threads.
12.

You might also like