m*t
4 楼
I think so, too, because there is an implicit null assignment.
I wouldn't be surprised, though, if some VM chooses to optimizes by waiting
until next line, after all, it doesn't really _have to_ load ClassA on this
line.
It's actually fairly easy to find out, just take ClassA off the classpath, and
look at the exception stack trace. 8-)
【在 xt 的大作中提到】
:
: I believe at run time, ClassA is loaded at this line.
g*e
5 楼
why? JVM does not require classA information for this line.
【在 m******t 的大作中提到】
:
: I think so, too, because there is an implicit null assignment.
: I wouldn't be surprised, though, if some VM chooses to optimizes by waiting
: until next line, after all, it doesn't really _have to_ load ClassA on this
: line.
: It's actually fairly easy to find out, just take ClassA off the classpath, and
: look at the exception stack trace. 8-)
相关阅读
I can access Re: java.sun.com down?请教一个JAVA编程问题Intellij IDEA 4.0 is outlinux IDE gui-visual builder for java?XSD to java beansswing紧急求助webcam Java programming关于actionPerformed()的问题新手一问JTreehow to transfer data between two socketsJava Server FacesW4T EclipseEIOffice (Yong Zhong) got good reviewsBjarne Stroustrup pissed offLook at Mars the way NASA doesfeel upsetA question about inheritanceeclipse: The New Look Isn't Native在Jbuilder里如何配置CVS参数?online calendar