java compiler not give all error at a time

后端 未结 3 2026
执笔经年
执笔经年 2020-12-16 05:30
        System.out.println(\"First eror ::  without semicolon \") // first Error
        System.Out.println(\"This second error :: OUT object not used proper :: \");         


        
3条回答
  •  伪装坚强ぢ
    2020-12-16 05:58

    In java language partially compiler and partially interpreter and In java first compilation happen so compiler should list out all errors

    I'm sorry to disappoint you but that's a non sequitur. The interpreter isn't present at compile time and has nothing whatsoever to do with it.

    The compiler can't determine all your errors at once, if for example some of them are syntax errors which preclude semantic analysis, or a simple semantic error precludes further analysis.

提交回复
热议问题