Which of the following statements is valid?
a. int i = new int(30);
b. double d[] = new double[30];
c. int[] i = {3, 4, 3, 2};
d. char[] c = new char();
e. char[] c = new char[4]{'a', 'b', 'c', 'd'};
b. double d[] = new double[30];
c. int[] i = {3, 4, 3, 2};
e would be corrected if it is char[] c = new char[]{'a', 'b', 'c', 'd'};
You might also like to view...
What section for the main body of a form displays records and usually contains all the bound controls?
A. Form Header B. Page Header C. Page Footer D. Detail
What are the most important Windows operating systems?
What will be an ideal response?
Which of the following is false?
a. The size of an ArrayList can be determined via its length instance variable. b. The size of an ArrayList can be determined via its size method. c. You can add a new item to the end of an ArrayList with its add method. c. You can get an item from a specified index in an ArrayList with its get method.
When the Clipboard pane is opened, all of its content can be erased by clicking the Clear All button
Indicate whether the statement is true or false