I've seen examples such as:
Type arrayname[] = new Type[];
also as written as:
Type[] arrayname = new Type[]
I am quite confused about such expressions!
Where exactly should I put the []
?
I've seen examples such as:
Type arrayname[] = new Type[];
also as written as:
Type[] arrayname = new Type[]
I am quite confused about such expressions!
Where exactly should I put the []
?
Copyright © 2021 Jogjafile Inc.
Any of the above are allowed. All produce the same bytecode. JLS-10.2 Array Variables says (in part)