Hey everyone. I was going through one of the FAQs in
SCJP FAQ Page which was
What are some potential trips/traps in the SCJP exam?
Two sentences I did not understand and I was hoping someone could explain them.
1. Forward references to variables gives a compiler error.
2. Primitive array types can never be assigned to each other, even though the primitives themselves can be assigned. For example, ArrayofLongPrimitives = ArrayofIntegerPrimitives gives compiler error even though longvar = intvar is perfectly valid.
Thanks.