0% found this document useful (0 votes)
33 views2 pages

Exercise 8

This document provides an exercise on threads in Java programming. The objectives are to learn how to use threads, create thread programs by extending Thread and implementing Runnable, and learn the different types of threads. The exercise involves copying code samples, creating a program that extends Thread, creating one that implements Runnable, and drawing a conclusion.

Uploaded by

torjack
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

Exercise 8

This document provides an exercise on threads in Java programming. The objectives are to learn how to use threads, create thread programs by extending Thread and implementing Runnable, and learn the different types of threads. The exercise involves copying code samples, creating a program that extends Thread, creating one that implements Runnable, and drawing a conclusion.

Uploaded by

torjack
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

LICEO DE CAGAYAN UNIVERSITY

College of Information Technology IT-103 Programming 2

Name : _____________________________ Score: _____________

Instructor: ____________________________ Date: _____________

EXERCISE NO. 8: Thread


Objectives:
1. Learn how thread is used in java program.

2. Learn how to create thread program using extends and implements Runnable.

3. Learn the types of Threads.

Materials:
Computer, Internet and Handouts

Problems:
A. Copy the codes to JCreator.
What is the output? _____________________________

What type of thread is used? _____________________________

B. Create program using extends

C. Create program using implement Runnable.

D. Conclusion

________________________________________________________________

________________________________________________________________

________________________________________________________________

You might also like