Exam 3: Using Classes and Objects

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

Given the following two lines of code, what can be said about s1 and s2? String s1 = "testing" + "123"; String s2 = new String("testing 123");

(Multiple Choice)
4.9/5
(33)

In Java, the symbol "=" and the symbol "==" are used interchangeably.

(True/False)
4.8/5
(28)

The printf method within System.out is designed to ease the conversion of legacy C code into Java.

(True/False)
4.9/5
(36)

If you need to import not only the top-level of a package, but all its secondary levels as well, you should use the following: import package.*.*;

(True/False)
4.9/5
(38)

Only difficult programming problems require a pseudocode solution before the programmer creates the program itself.

(True/False)
4.9/5
(44)

Java.text's NumberFormat class includes methods that

(Multiple Choice)
4.9/5
(35)

The advantages of the DecimalFormat class compared to the NumberFormat class include

(Multiple Choice)
4.7/5
(36)

In Java, instantiation means

(Multiple Choice)
4.7/5
(38)

When comparing any primitive type of variable, the == operator should always be used to test if two values are equal.

(True/False)
4.8/5
(40)
Showing 41 - 49 of 49
close modal

Filters

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