CSIS 212 MID TERM EXAM -2020 – QUESTION AND ANSWERS.
Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose randomNumbers is a SecureRandom object.Overloaded methods always have the same _________.The identifiers in an enumeration ________.Declaring main as static allows the JVM to invoke main ___Variables should be declared as fields only if ______The package contains classes for manipulating all of the following items except ________.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? Book[] books = new Book[10];In Java, multidimensional arrays ________.What do the following statements do? double[] array; array = new double[14];Constructors:Which syntax imports all static members of class Math?Using public set methods helps provide data integrity ifWhen no access modifier is specified for a method or variable, the method or variable:Overriding a method differs from overloading a method because:Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose randomNumbers is a SecureRandom object.Overloaded methods always have the same _________.The identifiers in an enumeration ________.Declaring main as static allows the JVM to invoke main ___Variables should be declared as fields only if ______The package contains classes for manipulating all of the following items except ________.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? Book[] books = new Book[10];In Java, multidimensional arrays ________.What do the following statements do? double[] array; array = new double[14];Constructors:Which syntax imports all static members of class Math?Using public set methods helps provide data integrity ifWhen no access modifier is specified for a method or variable, the method or variable:Overriding a method differs from overloading a method because:
Written for
Document information
- Uploaded on
- June 5, 2021
- Number of pages
- 10
- Written in
- 2020/2021
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails suppose randomnumbers is a securerandom object
-
overloaded methods always have the same