Description
CSIS 212 Quiz 2 with Answers Liberty
- You can declare new classes as needed; this is one reason Java is known as a(n) ________ language.
- The format specifier %.2f specifies that two digits of precision should be output ________ in the floating-point number.
- A class that creates an object of another class, then calls the object’s methods, is called a(n) ________ class.
- Which of the following statements is false?
- Which of the following statements is false?
- Each class you create becomes a new ________ that can be used to declare variables and create objects.
- Which of the following statements is false?
- 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.
- Which of the following statements is false?
- Java requires a ________ call for every object that’s created.
- An import declaration is not required if you always refer to a class with its ________ name, which includes its package name and class name.
- Which of the following statements is false?
- Which of the following statements is true?
- A __________ of a class called MyClass is another class whose methods call the methods of MyClass.
- You must call most methods other than ________ explicitly to tell them to perform their tasks.
- Reference-type variables (called references) store ________ in memory.
- Which of the following statements is false?
- Declaring instance variables ________ is known as data hiding or information hiding.
- Which of the following statements is false?
- 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.