Exam 3: Introduction to Classes and Objects

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

You must call most methods other than ________ explicitly to tell them to perform their tasks.

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

B

Which of the following statements is false?

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

A

Types in Java are divided into two categories.The primitive types are boolean,byte,char,short,int,long,float and double.All other types are ________ types.

Free
(Multiple Choice)
4.7/5
(38)
Correct Answer:
Verified

B

Which of the following statements is false?

(Multiple Choice)
4.8/5
(43)

The format specifier ________ is used to output values of type float or double.

(Multiple Choice)
4.9/5
(34)

Which of the following statements is false?

(Multiple Choice)
4.7/5
(22)

If a class does not define constructors,the compiler provides a default constructor with no parameters,and the class's instance variables are initialized to ________.

(Multiple Choice)
4.8/5
(36)

Each class you create becomes a new ________ that can be used to declare variables and create objects.

(Multiple Choice)
4.9/5
(28)

The format specifier %.2f specifies that two digits of precision should be output ________ in the floating-point number.

(Multiple Choice)
4.9/5
(40)

Floating-point literals are of type ________ by default.

(Multiple Choice)
4.9/5
(24)

Which of the following statements is false?

(Multiple Choice)
5.0/5
(36)

Which of the following statements is true?

(Multiple Choice)
4.8/5
(29)

A class that creates an object of another class,then calls the object's methods,is called a(n)________ class.

(Multiple Choice)
4.7/5
(37)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(34)

Reference-type variables (called references)store ________ in memory.

(Multiple Choice)
4.8/5
(39)

Which of the following statements is false?

(Multiple Choice)
4.7/5
(31)

An import declaration is not required if you always refer to a class with its ________ name,which includes its package name and class name.

(Multiple Choice)
4.9/5
(31)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(31)

Which of the following statements is true?

(Multiple Choice)
4.9/5
(26)

A key part of enabling the JVM to locate and call method main to begin the app's execution is the ________ keyword,which indicates that main can be called without first creating an object of the class in which the method is declared.

(Multiple Choice)
4.9/5
(37)
Showing 1 - 20 of 34
close modal

Filters

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