Can you change the value of a java.time.LocalDateTime object?
No. It’s immutable.
d = new java.time.LocalDateTime(); What happens?
compiler error
int numbers []; What’s the result?
The array numbers is declared. [] right to the name and space between: not recommended, but legal
int[3] places; What’s the result?
Compile error. It is illegal to include the array’s size in the declaration.
x[-2] What’s the result if x is an array?
ArrayIndexOutOfBoundsException
How can you determine the size of an array or ArrayList?
array: length attribute; ArrayList: size() method
Can an ArrayList hold primitives?
No. Only objects.
What happens if casting is not successful?
ClassCastException. No compiler error!!