Menu
Question Index
...

Which of following are correct for declaring arrays?

1. public int a [ ]
2. static int [ ] a
3. public [ ] int a
4. private int a [3]
5. private int [3] a [ ]
6. public final int [ ] a


1, 3 and 4     
2, 4 and 5
1, 2 and 6
2, 5 and 6

Doubts

Problems

Topic: Creation And Declaration Of Array In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App