asked 19.8k views
5 votes
Statement Valid? double d[] = new double[30]; double d[] = new double[30]

asked
User Tadeusz
by
7.9k points

1 Answer

4 votes

Answer:

Yes, The statement, double d[] = new double[30];, is valid in Java for creating an array of type double with a size of 30 elements.

Step-by-step explanation:

This is the correct way to create a new array in Java using the new keyword.

answered
User Piotr Wadas
by
8.2k points

No related questions found