Syntax error Why do Java array declarations use curly brackets?

Why do Java array declarations use curly brackets?



Curly brackets usually denote sets and ensembles while parenthesis usually in most Algol-based programming languages curly braces are used to declare arrays.

Updated on: 2019-07-30T22:30:20+05:30

667 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements