Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following is used to write instances of Java classes directly into a file? a. ObjectInputStream b. FileInputStream c. DataInputStream d. None of

Which of the following is used to write instances of Java classes directly into a file?

a.

ObjectInputStream

b.

FileInputStream

c.

DataInputStream

d.

None of the other answers

=======

Which of the following is valid in Java, if class XYZ is a directed superclass of class ABC and class XYZ is also a "directed" subclass of class EFG (suppose they all have no-argument constructors)?

a.

XYZ b = new ABC();

b.

EFG a = new ABC();

c.

All of the other answers

d.

EFG c = new XYZ();

==========

this.localVar = this.aMC(); Given the above valid statement, which of the following is correct?

a.

This statement assigns a local variable with a value obtained from a method calling.

b.

This statement indicates that the associated class has at least one field and one method.

c.

This statement must be in a method body of the class itself.

d.

All of the other answers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions