Mnemonic | nwa | ||||||||||||
Statement | x = new type[b] | ||||||||||||
Description | Sets x to a new array of a primitive type of length b. Each entry is set to their default values. Throws an unable to allocate exception if there is no more memory to allocate. Throws invalid operand if b is not a whole number or is less than 0. | ||||||||||||
Type ℹ | Computational | ||||||||||||
Categories |
|
||||||||||||
Variants ℹ |
|
||||||||||||
Types | |||||||||||||
Exceptions ℹ |
|
||||||||||||
Relaxations ℹ |
|
We would be more than happy to help you. Our opening hours are 9–15 (CET).
📞 (+47) 93 68 22 77
Nils Bays vei 50, 0876 Oslo, Norway