Exam 8: Classes and Objects: a Deeper Look

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The classpath consists of a list of directories or archive files,each separated by a ________ on Windows or a ________ on UNIX/Linux/Max OS X.

Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
Verified

B

A class within a package must be declared public if

Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
Verified

B

Static class variables:

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

D

Which statement is false?

(Multiple Choice)
4.8/5
(35)

Which method returns an array of the enum's constants?

(Multiple Choice)
4.8/5
(35)

The import declaration import java.util.*;is known as a ________.

(Multiple Choice)
4.8/5
(42)

A final field should also be declared ________ if it is initialized in its declaration.

(Multiple Choice)
4.8/5
(41)

By default,the classpath consists only of the ________.However,the classpath can be modified by providing the ________ option to the javac compiler.

(Multiple Choice)
4.8/5
(36)

Which of the following is false?

(Multiple Choice)
4.8/5
(40)

A programmer-defined constructor that has no arguments is called a(n)________.

(Multiple Choice)
4.8/5
(31)

Having a this reference allows:

(Multiple Choice)
4.9/5
(28)

When should a program explicitly use the this reference?

(Multiple Choice)
4.8/5
(39)

The import declaration import *;________.

(Multiple Choice)
4.8/5
(42)

Instance variables declared final do not or cannot:

(Multiple Choice)
4.8/5
(30)

Set methods are also commonly called ________ methods and get methods are also commonly called ________ methods.

(Multiple Choice)
4.8/5
(43)

When compiling a class in a package,the javac command-line option ________ causes the javac compiler to create appropriate directories based on the class's package declaration.

(Multiple Choice)
4.8/5
(36)

Which statement is false?

(Multiple Choice)
4.7/5
(33)

The _________ of a class are also called the public services or the public interface that the class provides to its clients.

(Multiple Choice)
4.7/5
(38)

Enum types are implicitly ________ and enum constants are implicitly ________.

(Multiple Choice)
4.7/5
(34)

When no access modifier is specified for a method or variable,the method or variable:

(Multiple Choice)
4.9/5
(33)
Showing 1 - 20 of 31
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)