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-)
相关阅读
我自己编了个Java面试题开发前景光明啊Market share of Tomcat/tcServer, Glassfish, WebSphere, WebLogiclegacy code里竟然还有scriplet,sigheclipse的jetty服务started但8080口显示404 errorJava Object 一定在 Heap 里吗inner class 让认糊涂如何在CXF framework中捕获Inceptor产生的exceptionJava certification, 6 or 7?ActiveMQ和RabbitMQnetflix的用hdtv看它的电影,如果1000用户同时登录看同一个影片,怎么处理的?如何读懂Java程序java学习范围 - for找工作verawang.com 的网站样式,目前好像很流行。portlet是不是没前途呀Looking for Java volunteers请问目前哪些大公司的平台是java做的,或是主要product是java写的呢?求建议,Java转Javascript?大家写javascript是借助sencha还是自己造轮子?学以致用,但多此一举?