由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - static vs. final
相关主题
SCJP BooksSCEA 1.4 beta exam (Free)
Re: Want to take Java CertificationAnyone took Java Architect cert test?
2 Java Developer SCJD books download大家能推荐考JAVA证书的中文网站吗?
apply Java board BF问个知识升级的问题
Re: 刚过了SCJP, 灌水一篇,以示庆贺;兼问SCJD和SCEAJava都在什么时候进行Garbage collection?
maybe useful SCJP-mock exam link listJava证书:下一个该考什么?
PASS SCJP LE考完SCJP后大家建议下一个考什么比较好?
两个很基本的JAVA问题考一个sun certified programmer 310-035 大约需要多久?
相关话题的讨论汇总
话题: static话题: java话题: same话题: written
进入Java版参与讨论
1 (共1页)
W******c
发帖数: 23
1
First, you need to understand the initialization sequence of a Java program
1.static initialization
All static vars and static floating blocks are run first AS IN THE SAME ORDER AS WRITTEN
in the source java program.
2.instance initialization
All instance vars and instance floating blocks are run next AS IN THE SAME ORDER AS
WRITTEN in the source java program.
3.constructor is run
The below example shows all. I am sure it will appear in SCJP:
class Test {
//case 1
final int instFin
1 (共1页)
进入Java版参与讨论
相关主题
考一个sun certified programmer 310-035 大约需要多久?Re: 刚过了SCJP, 灌水一篇,以示庆贺;兼问SCJD和SCEA
去那里查这些信息maybe useful SCJP-mock exam link list
Where can I download the textbook for SCJP 5.0 exam?PASS SCJP LE
scjp 5.0 模拟题两个很基本的JAVA问题
SCJP BooksSCEA 1.4 beta exam (Free)
Re: Want to take Java CertificationAnyone took Java Architect cert test?
2 Java Developer SCJD books download大家能推荐考JAVA证书的中文网站吗?
apply Java board BF问个知识升级的问题
相关话题的讨论汇总
话题: static话题: java话题: same话题: written