The Artima Developer Community
Sponsored Link

Java Buzz Forum
Tuesday JavaFX Quiz: What Will It Print?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Tuesday JavaFX Quiz: What Will It Print? Posted: Jun 24, 2009 8:09 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Tuesday JavaFX Quiz: What Will It Print?
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

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).

Read: Tuesday JavaFX Quiz: What Will It Print?

Topic: DrunkAndRetired.com #154 - Porchtastic Previous Topic   Next Topic Topic: Export from and Import to Thunderbird

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use