Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This low level abstract class is used for writing a stream of \"char\"s OutputSt

ID: 3858022 • Letter: T

Question

This low level abstract class is used for writing a stream of "char"s

OutputStream

Output

Writer

WriteStream

3 points

this is a Java language keyword that allows you to launch or initiate an exception

makeException

throw

throws

catch

3 points

This kind of class cannot be constructed. However, classes derived from this class can be constructed if they override the appropriate methods.

Serializable

Implementable class

Abstract class

Object

3 points

This is a class which implements the LayoutManager interface and has a philosophy of placing components left to right. When it runs out of room, it starts a new "row" of components.

FlowLayout

InputStream

StreamLayout

RowLayout

3 points

You can read binary class instances from this Input buffering class.

InputStream

FileInputStream

ObjectInputStream

DataInputStream

3 points

3 points

this.addMouseListener();

addMouseListener(this.JFrame);

MyMouseHandler mmh = new MyMouseHandler();
mmh.addMouseListener();

addMouseListener( new MyMouseHandler());

3 points

Calling this method on a thread will allow the thread to begin executing.

execute

runThread

begin

start

3 points

3 points

All Exceptions derived from this class are considered "Unchecked" and the compiler will not force you to write an special code to deal with this Exception.

RuntimeException

Exception

ArithmeticException

Throwable

3 points

This interface contains no methods. However, implementing this interface in a class makes it possible to write the class to an ObjectOutputStream.

Serializable

Writeable

Comparable

Streamable

3 points

A compile error at line 11 will occur because doit needs to surround the throw statement with try-catch logic, or change it's declaration to:
void doit throws MyError1

The program aborts with an exception

The program will run and generate the output "Exception"

The program will run and generate the output "RuntimeException"

The program will run and generate the output "MyError1"

3 points

If you add the following statement to your code:

addMouseListener( xclass );

What must be true about xclass

xclass will extend the class MouseListener

xclass will contain all of the methods defined in the MouseListener interface.

xclass will be an inner class.

xclass will contain a MouseListener class inside of it.

3 points

This class can be constructed to create a Writer class that is associated with a file open for writing

OutputStream

FileWriter

FileOutputStream

File

3 points

this method in the Thread class is used when a thread wants to suspend itself for a specified period of time.

wait

start

run

sleep

OutputStream

Output

Writer

WriteStream

Explanation / Answer

46) (C) Writer Class

  Abstract class for writing to character streams.

47) (B) throw

48) (D) Object class


49) (A) FlowLayout


50) (C) ObjectInputStream


51) (C) File


53) (D) start


54) (B) JComponent


55) (A) RuntimeException


56) (A) Serializable


58) (B)xclass will contain all of the methods defined in the MouseListener interface.


59) (B) FileWriter


60) (D) sleep

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote