Description
CSIS 212 Final Exam with Answers
- Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose random Numbers is a Secure Random object. (CSIS 212 final exam)
- Overloaded methods always have the same _________.
- The identifiers in an enumeration ________.
- Declaring main as static allows the JVM to invoke main ________.
- All the flexible should be declared as fields only if ________.
- The java.text package contains classes for manipulating all of the following items except ________.
- Which set of statements totals the items in each row of two-dimensional array items, and displays each row’s total?
Which of the following statements is false?
- A programmer must do the following before using an array:
- How many Book objects are created by the following statement?
- In Java, multidimensional arrays ________.
- What do the following statements do?
- A constructor cannot:
- Constructors:
- Which syntax imports all static members of class Math?
- Using public set methods helps provide data integrity if:
- Instance variables declared final do not or cannot:
- When no access modifier is specified for a method or variable, the method or variable:
Overriding a method differs from overloading a method because:
- The statement is true when a superclass has protected instance variables?
- In the following statements is false?
- To avoid duplicating code, use ________, rather than ________.
- Using the protected keyword also gives a member:
- Which of the following is not a superclass/subclass relationship?
- Which of the following keywords allows a subclass to access a superclass method even. When the subclass has overridden the superclass method?
- The default implementation of method clone of Object performs a ________.
- Consider the classes below, declared in the same file. Which of the statements below is false?
Private fields of a superclass can be accessed in a subclass
- Superclass methods with this level of access cannot be called from subclasses.
- When a subclass constructor calls its superclass constructor, what happens. If the superclass’s constructor does not assign a value to an instance variable?
- Every class in Java, except ________, extends an existing class.
- Which of the following is the superclass constructor call syntax?
- The default equals implementation of class Object determines:
- Which of the following statements is false?
- What is the process of determining the correct method to call?
- Which of the following statements is false?
- Which of the following is not possible?
Every object in Java knows its own class and can access this information through method.
- Which keyword is used to specify it. A class will define the methods of an interface?
- Which of the following statements is false?
- Non-abstract classes are called ________.
- Which statement best describes the relationship between superclass and subclass types?
- Polymorphism enables you to:
- Which of the following is false?
- Which of the following statements is false?
- It is a UML convention to denote the name of an abstract class in ________.
- Class1 (method1 returns an int and takes no arguments)?