Answer Posted / Rekha Meena
In Scala, you can create arrays using the 'new' keyword followed by the array type and size enclosed in square brackets. For example, to create an array of integers with 5 elements: 'val arr = new Array[Int](5)'.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers