Asked • 08/17/23

This is a Java Quiz

1.     C and C++ are __________-threaded languages whereas Java is a __________-threaded language.

2.     Three reasons an alive thread might not be Runnable are that it is _________, _________, and ___________.

3.     A thread enters a Dead state when ___________.

4.     A thread’s priority ca be changed with method ___________.

5.     A thread may give up processor to a thread of the same priority by calling Thread method ____________.

6.     Ultimately, all data items processed by a computer are reduced to combinations of ________ and ________.

7.     A group of related files is called a ______________.

8.     RandomAccessFile method ________ reads an integer from the specified stream.

True or False:

9.     A thread is not Runnable if it is dead.

10. The programmer must explicitly create System.in, System.out and System.err.

11. Methods “seek” must seek relative to the beginning of a file.

Review:

1.     What are the four main parts of a class?

2.     How to you change a private variable within a class?

3.     What is the difference between private, protected and public access modifiers?

4.     What is the difference between a class and array?

5.     How do you declare an array in Java?

2 Answers By Expert Tutors

By:

Leo P. answered • 08/19/23

Tutor
New to Wyzant

Professional Java tutor for the University of Central Florida

Ralph W. answered • 08/17/23

Tutor
4.9 (144)

From Syntax to Systems: Professional Tutoring in Computer Programming

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.