Java Need help with some review question! Thank you! 1) One or more objects may
ID: 3556903 • Letter: J
Question
Java
Need help with some review question! Thank you!
1) One or more objects may be created from a(n)
a. field
b. class
c. method
d. instance
3. A constructor
a. always accepts two arguments
b. has return type of void
c. has the same name as the class
d. always has an access specifier of private
6. What does the following statement do? double[ ] array1 = new double[10];
a. Declares array1 to be a reference to an array of double values
b. Creates an instance of an array of 10 double values
c. Will allow valid subscripts in the range of 0
Explanation / Answer
1) Class
3) c
6) d
7) d
9) c
10) d
11) c
12) b
13) c
14)c
15) d
16)d
8) d
19) b
23) T
24) F
25) F
27) T
33) a) int[ ] collection = new int[20];
b) int hours = 8, 16, 12;
int table = new table[10];
for( int x = 1; x <= 10; x++)
{
table[x] = 99; // small t
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.