Search Header Logo

Java Programming Section 5

Authored by Ferdy Aditya

Computers

University

Used 5+ times

Java Programming Section 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these construct a DataInputStream instance?

New dataInputStream(new file("java.txt"));

New dataInputStream(new InputStream("java.txt"));

New dataInputStream(new writer("java.txt"));

New dataInputStream("java.txt");

New dataInputStream(new FileInputStream("java.txt"));

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The java.nio.file package has improved exception handling.

True or false?

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The java.io package has problems with no support for symbolic links.

True or false?

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The normalize() method removes redundant name elements from a qualified path.

True or false?

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The new Paths class lets you resolve .. (double dot) path notation.

True or false?

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following static methods is not provided by the Files class to check file properties or duplication?

Files.isWritable(Path p);

Files.isHidden(Path p);

Files.isArchived(Path p);

Files.isReadable(Path p);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can read input by character or line.

True or false?

True

False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?