<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    gembin

    OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

    HBase, Hadoop, ZooKeeper, Cassandra

    Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

    There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

    About Me

     

    Why not throwing an ArrayIndexOutOfBoundsException?

    Let's take a look at the following code:

    public Class Program{
    public static void main(String[] args){
    int i = 0;
    int[] a = {1,2};
    a[i] = i = 2;
    System.out.println(i + " " + a[0]+ " "+a[1]);
    }
    }

    What is the output from the above code?

    The output is:

    2 2 2

    You may raise some questions: "When does i get a value 2?", "Why doesn't it use the same value (i=2) for a[i] (which should actually give an ArrayOutOfBoundsException Exception)?", and so on.

    The reason no ArrayIndexOutOfBoundsException is thrown is because each of the operands is evaluated from left to right. Basically the array reference is evaluated first then the rest of the expression is done according to the rules in the posted on 2010-07-08 14:25 gembin 閱讀(438) 評論(0)  編輯  收藏 所屬分類: JavaSE

    導(dǎo)航

    統(tǒng)計

    常用鏈接

    留言簿(6)

    隨筆分類(440)

    隨筆檔案(378)

    文章檔案(6)

    新聞檔案(1)

    相冊

    收藏夾(9)

    Adobe

    Android

    AS3

    Blog-Links

    Build

    Design Pattern

    Eclipse

    Favorite Links

    Flickr

    Game Dev

    HBase

    Identity Management

    IT resources

    JEE

    Language

    OpenID

    OSGi

    SOA

    Version Control

    最新隨筆

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    free counters
    主站蜘蛛池模板: 日韩av无码免费播放| 免费无码黄网站在线看| 日本免费污片中国特一级| 久久国产精品免费专区| 国内精品99亚洲免费高清| 国产精品亚洲成在人线| 亚洲第一精品电影网| 精品久久久久亚洲| 成人精品视频99在线观看免费| 久久免费看黄a级毛片| 日韩高清免费在线观看| 中国亚洲女人69内射少妇| 羞羞的视频在线免费观看| 久久精品人成免费| 日批日出水久久亚洲精品tv| 亚洲国产成人久久综合一| 色欲色欲天天天www亚洲伊| 亚洲欧洲免费视频| 亚洲国产成人久久综合区| 亚洲一级免费毛片| 免费国产高清毛不卡片基地| 在线a免费观看最新网站| 亚洲另类精品xxxx人妖| 免费黄色电影在线观看| 亚洲国产成人精品无码久久久久久综合 | 亚洲精品乱码久久久久66| 九九久久精品国产免费看小说 | 亚洲最大成人网色| 免费看少妇高潮成人片| 亚洲日本在线观看| 免费观看黄网站在线播放| 亚洲日本精品一区二区| 成年男女免费视频网站| 亚洲网站在线免费观看| 国产美女做a免费视频软件| 亚洲精品免费在线视频| 浮力影院第一页小视频国产在线观看免费 | 16女性下面无遮挡免费| 亚洲精品国产国语| 99久久久国产精品免费牛牛四川| 亚洲伊人久久大香线蕉综合图片|