6. (TCO 1) What do the following statements do? double array[ ]; array = new dou
ID: 3661133 • Letter: 6
Question
6.(TCO 1) What do the following statements do?double array[ ];
array = new double[ 14 ];(Points : 6) Creates a double array containing 13 elements.
Creates a double array containing 14 elements.
Creates a double array containing 15 elements.
Declares but does not create a double array.
7.(TCO 2) Variables should be declared as member variables of a class if(Points : 6) they are used as arguments to other methods of the class.
they are only used by one method of the class.
their values must be shared between different methods of the class.
they are local variables.
8.(TCO 2) What can you say about the following Java class?
public class MyApp extends Shape, Color { 6.(TCO 1) What do the following statements do?
double array[ ];
array = new double[ 14 ];(Points : 6) Creates a double array containing 13 elements.
Creates a double array containing 14 elements.
Creates a double array containing 15 elements.
Declares but does not create a double array.
Explanation / Answer
6.Creates a double array containing 14 elements. 7.their values must be shared between different methods of the class. 8.MyApp will not compile because multiple inheritance is illegal in Java. 9.BorderLayout 10.FlowLayout
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.