Computer Science, asked by drrdsharma6433, 1 year ago

How to declare, create, initialize and access an array in Java?

Answers

Answered by amannishad0512p5zxh6
0

To declare : Datatype arrayname[ ]

int a[ ]

This is syntax to declare and initialise together .

Syntax : Datatype array name [ ] =new Datatype[ size];

int a[ ]= new int [10];

Hope you will get it

For more java doubts follow me@

Similar questions