Computer Science, asked by retro87, 7 months ago

Write a java statement to declare and
create an
array 'num' of 40 integers

Answers

Answered by Oreki
0

int[ ] num = new int[40];

OR

int[ ] num;

num = new int[40];

Answered by anindyaadhikari13
2

Question:-

Write a java statement to declare and create an array 'num' of 40 integers.

Statement:-

The statement should be,

int num[]=new int[40];

Or,

int[] num=new int[40];

Or,

int num[];

num[]=new int[40];

Similar questions