![]() ![]() The summary of changes for J2SE 1.4 implies that the ambiguity was finally resolved in favor of evaluating the left-hand expression fully. Is referencing index -1 of the threads array part of such an evaluation? The wording in the Java Language Specification is somewhat vague. sleep (1), but also evaluate the expression itself (and discard such an evaluation's result). Still, the Java Language Specification requires the compiler to not only infer the target class from the left-hand expression of threads. The subtle point here is that Thread.sleep() is a static method and doesn't need a Thread instance at all.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |