Tuesday JavaFX Quiz: What Will It Print?
Inspired by the on-going discussion titled Indexing access for Lists and Maps considered harmful? on the coin-dev mailing list, in which the Java language designers are hashing out the true meaning of
map["a"] = map["b"] = "c";
under the List and Map access through array-like indexing proposal, here is a somewhat similar question asked of JavaFX Script sequences.
Q: Will the following program compile? Run without exceptions? And if so, what does it print?
var seq:Integer[]; seq[0] = seq[1] = 1024; println(seq);
Lenient rules apply: no actual compiling for the first thirty minutes, but Googling, and consulting with books are allowed (and encouraged).