A

Admin • 825.56K Points
Coach

Q. Which of these is the correct syntax to declare an array of doubles?

  • (A) double arr[];
  • (B) double[] arr;
  • (C) Both A and B
  • (D) None of the above

Explanation by: Admin
Both `double arr[];` and `double[] arr;` are valid syntax in Java.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.