![]() |
subject > programming language construct > declaration > Java declaration |
![]() ![]() | |||
Java declaration comparison table |
Subject | place | have form | have example |
---|---|---|---|
Java array declaration | square brackets following the type | int[] anIntArray = new int[25]; | |
Java variable declaration | practically anywhere in Java source code although it is good practice to only declare variables at the beginning of blocks | int anInteger; |
Up: declaration