b. double [] a2 = new {2.5}: c. double [] a4 = {5, 2}: d. double [] a3 = new {5.1.2.8}: 2. Which of the following is correct array declaration?

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 3RQ
icon
Related questions
Question
a. double [] al = new double(2);
b. double [] a2 = new {2.5}:
c. double [] a4 = {5, 2}:
d. double [] a3
2. Which of the following is correct array declaration?
= new {5.1. 2.8}:
Transcribed Image Text:a. double [] al = new double(2); b. double [] a2 = new {2.5}: c. double [] a4 = {5, 2}: d. double [] a3 2. Which of the following is correct array declaration? = new {5.1. 2.8}:
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT