先看一道Java面试题:

 public class Baset {
private String baseName = "base";
// 构造方法
public Baset() {
callName();
}
// 成员方法
public void callName() {
// TODO Auto-generated method stub
System.out.println("basename:" + baseName);
}
//静态内部类
static class Sub extends Baset {//static必须写在开头
// 静态字段
private String baseName = "sub";
public Sub() {
callName();
}
// 重写父类的方法
public void callName() {
System.out.println("subname:" + baseName);
}
} public static void main(String[] args) {
Baset base = new Sub();
}
}

求这段程序的输出。

解答此题关键在于理解和掌握类的加载过程以及子类继承父类后,重写方法的调用问题:

一、从程序的执行顺序去解答:

1.编译;当这个类被编译通知后,会在相应的目录下生成两个.class 文件。一个是 Base.class,另外一个就是Base$Sub.class。这个时候类加载器将这两个.class  文件加载到内存

2、Base base= new Sub():

  声明父类变量base对子类的引用,JAVA类加载器将Base,Sub类加载到JVM(Java虚拟机);

3、JVM为Base,Sub 的的成员开辟内存空间

  此时,Base 和Sub类中的值为null;

4、new Sub();

  这个时候会调用Sub类的隐式构造方法,

Sub的构造方法本质为:

public Sub(){

  super();//  调用父类的构造方法。必须在构造方法中的第一行,为什么呢?这是因为在一些程序的升级中,要兼容旧版本的一些功能,父类即原先的一些初始化信息也要保证  //被执行到,然后执行当前

  baseName = "sub";//子类字段初始化

}

   new Sub()执行到super()这行代码也就是跑到父类中去执行了,我们跳转到父类中的无参构造方法中执行,最后执行Sub()中的baseName = "sub"

5、public Base() ;

父类无参构造方法的本质为:

  public Base(){

  baseName= "base";//父类字段初始化

  callName();

}

  即将父类的baseName赋值为“base”,赋值后调用callName();

6、callName()方法在子类中被重写,因此调用子类的callName(),子类的callName方法执行,打印输出的是子类的baseName 字段的值,而这个时候子类的构造函数中字段的赋值还未执行。

7、父类的构造函数执行完毕,这个时候又回到子类当中,从super()的下一行继续执行,这个时候才为子类字段baseName 分配好存储空间,随后为其赋值:

可见,在baseName = "sub"执行前,子类的callName()已经执行,所以子类的baseName为默认值状态null;

 二、另写两个程序,进行更具体的分析

 1、第一个程序:

 public class InitialOrderTest {
// 变量
public String field = "变量";
// 静态变量
public static String staticField="静态变量";
//父类静态方法
public static void Order(){
System.out.print("父类静态方法");
System.out.println("staticField:"+staticField);
} // 静态初始代码块
static{
System.out.println("静态初始化块");
System.out.println("staticField:"+staticField);
}
// 初始化代码块
{
System.out.println("初始化代码块");
System.out.println("field:"+field);
}
// 构造函数
public InitialOrderTest(){
System.out.println("构造器"); } public static void main(String[] args) {
System.out.println("-----[[-------");
System.out.println(InitialOrderTest.staticField);
InitialOrderTest.Order();
System.out.println("------]]------");
InitialOrderTest i = new InitialOrderTest();
System.out.println("-----[[-------");
System.out.println(InitialOrderTest.staticField);
InitialOrderTest.Order();
System.out.println("------]]------"); }
}

执行结果为:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAArEAAAFJCAIAAAADkeKTAAAgAElEQVR4nO3dO28cy6EncH4cdihgIn0GZgL4ERgxoqHIgWNDgQfE7sY2cA0LBsHEgII9C9gBAwl3sRebbKJEFnQvsFpfr3XOwcVm2qDJmequR1f39HBev8IvIGf6UdPd0/Xv6sec/cu//M//9F/+89evX78/lb/+23+svPtv//27oiiKoignUM5kAkVRFEVRvu9pJvi4fHn2cvlxm7N4dzXzHJJ1Hvgg767Ort5tON/ZP4gysTytzU223mfY8o+yrJfbHN+pQyy5LWe9f/i4fHlAiyZT21FfEN+mSUUmqCofly/Pzs7OzvJfqs0zwWoeZ2dn9ZUb80HeXZ31y1w7icIuKTOTyoo/1nk1iW1loI/LlxsujZ1lgsdFlBivs0mlPl68NDuj7GsT0v1cL5cf58sEpZYzmG1nkPX36updZ5lmNtYZtuFoEptkgvyXNPuRwzFr9lcfly87A/VGTG+HIzNB9TLZ79L55NMahcQU45WYXXezZIJ9SKAj6zD+a1k9Rn1Ngv3Xu6vOuqlvoabsX6btNwufKznBdjdwdZUd6+Py5XDV+5PeUib4uHz58uVmW/Hk1miOr096sXSnnNr1R+sgeGF/d6ljN8UxE85+4ndXq6UXLpnEkl9PJT29Obbhqi/P98FMUP6SZj5yMO7jS8GA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7Pyi13YeDc3EfRWsxoq+u9sIp77w52EugqAI6e30oGABaNTAAAtGQCAGDRyAQAQEsmAAAWjUwAALRkAgBg0cgEAEDr2DLB+ql80QP4Cm8BAMeWCULt03mTDX/hLQA4TTLB7usJAPtAJth9PQFgH8gEu68nAOwDmWD39QSAfSAT7L6eALAPRmeC85v73B19e/LWuqpjMsGeVL7mcwHANugn2H09AWAfyAS7rycA7AOZYPf1BIB9IBPsvp4AsA9kgt3XEwD2gUyw+3oCwD44+/Dhn//p978/mkzgdxEBYJqzf/r97//rDz8cTSYAAKY5+/bt248//igTAMCJkwkAgEUjEwAALZkAAFg0MgEA0JIJAIBFIxMAAC2ZAABYNDIBANCSCQCARSMTAAAtmQAAWDQyAQDQkgkAgEUjEwAALZkAAFg0MgEA0JIJAIBFIxMAAC2ZAABYNC8WZ//4xz9qMsH/G1l+/vnnsaMoiqIoirLDcvbt27dv374NZoK/dsvnivJXRVEURVEOp9Rmgu9L6l4AAAFxSURBVH/tln+rKP+qKIqiKMrhlNpM8H8qyt+65auiKIqiKIdTajPBv3fL359K2/b/7W9/+3tU/l1RFEVRlMMpG2WCNhD85je/+fr1q0ygKIqiKAddpmeCNhC8fv36t7/9rUygKIqiKIdeJmaCNhD84he/+PWvf/2nP/1JJlAURVGUQy8TM8HXr19/+ctf/upXv/rd7373ww8/yASKoiiKcuhlo36C29vbP/7xj3/5y19kAkVRFEU59LLp9QR/+MMfHh4eZAJFURRFOfRy9uOPP9Y827g3WnjfwZ///GeZQFEURVEOvZz99NNPkzPB3z2fQFEURVGOpWyaCQplJ59HURRFUZRp5eznn3/+6aefBjPB/1UURVEU5ajL2U8//RRmgjAQhLHg2/jyD0VRFEVRDqecrX75oJwJJvyUwv9WFEVRFOVwytn3oMSBoHcGQVEURVGUYy3rTJALBKtYIBkoiqIoyhGXs+9DaSBOBgDA8fn/GsUJhOXCgXkAAAAASUVORK5CYII=" alt="" />

   第一个程序总结:

     1)、java中的块分为静态块(static{})和非静态块({}),这两种的执行是有区别的:

非静态块的执行时间是:在执行构造函数之前。   静态块的执行时间是:class文件加载时执行。

static类型的属性也是在类加载时执行的。

    2)、可见Java类的实例变量初始化的过程:

        static类型的成员属性执行,静态块(static{})按顺序执行,然后非静态成员变量初始化,非静态代码块({})执行,最后执行构造方法。

static类型与static块按先后顺序执行。

---------------------------------------------------------------------------------------------------------------------------------------------------

  2、第二个程序:

   

 public class BaseTest {
// 父类变量
private String baseName = "base";
// 父类静态变量
private static String staticField = "父类静态变量";
// 父类静态方法
public static void Order() {
System.out.println("父类静态方法-");
System.out.println("staticField:" + staticField);
}
// 父类静态初始代码块
static {
System.out.println("父类静态初始化代码块-");
System.out.println("staticField:" + staticField);
}
// 初始化代码块
{
System.out.println("父类非静态初始化代码块-");
System.out.println("baseName:" + baseName);
}
// 构造函数
public BaseTest() {
System.out.println("父类构造方法");
callName();
}
// 成员方法
public void callName() {
System.out.println("父类callName方法-");
System.out.println("baseName:" + baseName);
} // 静态内部类
static class Sub extends BaseTest {
// 子类变量
private String baseName = "sub";
// 子类 静态变量
private static String staticField = "子类静态变量"; // 子类静态方法
public static void Order() {
System.out.println("子类静态方法-");
System.out.println("staticField:" + staticField);
} // 子类静态初始化代码块
static {
System.out.println("子类静态初始化代码块-");
System.out.println("staticField:" + staticField);
}
// 子类非静态初始化代码块
{
System.out.println("子类非静态初始化代码块-");
System.out.println("baseName:" + baseName);
} public Sub() {
System.out.println("子类构造方法");
callName();
} public void callName() {
System.out.println("子类重写父类callName方法-");
System.out.println("baseName:" + baseName);
}
} public static void main(String[] args) { BaseTest b = new Sub(); System.out.println("-----[[-------");
Sub.Order();
System.out.println(Sub.staticField);
System.out.println(BaseTest.staticField);
BaseTest.Order();
System.out.println("------]]------"); }
}

执行结果:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAz8AAAIACAIAAAAjbEXYAAAgAElEQVR4nO3dO24jW9s25j0cKhTwRj0GZQI0hI4UCdAolBAagUMFhMKOHCqQYMOhk5301+j/D2yH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zKZTCaTyWQynXjKprf/MZz+Z2D6HyaTyWQymUymE0/Z9PZ/B6b/Zzj9XyaTyWQymUymE0//PwBCnUiWul8KAAAAAElFTkSuQmCC" alt="" />

第二个程序总结:

     )可见Java初始化的顺序:   

  1 父类静态代码块-static{ }
2 父类静态变量初始化
3 子类静态代码块-static{ }
4 子类静态变量初始化
5 父类非静态代码块-{}
6 父类非静态变量初始化
7 父类构造方法
8 子类非静态代码块-{}
9 子类非静态变量初始化
10 子类构造方法

Java 类的实例变量初始化的过程 静态块、非静态块、构造函数的加载顺序的更多相关文章

  1. Java类、实例的初始化顺序

    今晚是阿里巴巴 2013 校园招聘的杭州站笔试.下午匆忙看了两张历年试卷,去现场打了瓶酱油. 题目总体考察点偏基础,倒数第二题(Java 附加题)比较有趣,考察了 Java 初始化机制的细节,在此摘录 ...

  2. java学习之实例变量初始化

    实例变量的初始化方法 第一种:通过构造函数进行初始化. 第二种:通过声明实例字段初始化. 第三种:通过对象代码块初始化. 通过构造函数进行初始化方法 通过构造函数进行对象初始化,必须在类中声明一个带参 ...

  3. 分析java类的静态成员变量初始化先于非静态成员变量

    依上图中当class字节码文件被jvm虚拟机加载到内存中依次经过 连接 验证:对字节码进行验证 准备:给静态变量分配内存并赋予变量类型各自的默认值(注:基本类型为0或false,对象为null,sta ...

  4. 浅谈Java类中的变量初始化顺序

    一.变量与构造器的初始化顺序 我们知道一个类中具有类变量.类方法和构造器(方法中的局部变量不讨论,他们是在方法调用时才被初始化),当我们初始化创建一个类对象时,其初始化的顺序为:先初始化类变量,再执行 ...

  5. Java面试题之类的静态代码块和静态属性等的加载顺序

    如以下面试题: /** * @author hjs * @date 2019/3/62:41 * @Dec */public class B { public static B t1 = new B( ...

  6. Java实例变量初始化

    由一道面试题所想到的--Java实例变量初始化 时间:2015-10-07 16:08:38      阅读:23      评论:0      收藏:0      [点我收藏+] 标签:java   ...

  7. java中静态变量,静态代码块,静态方法,实例变量,匿名代码块等的加载顺序

    转自:http://blog.csdn.net/mrzhoug/article/details/51581994 一.在Java中,使用”{}”括起来的代码称为代码块,代码块可以分为以下四种: 1.普 ...

  8. (转)面试题--JAVA中静态块、静态变量加载顺序详解

    public class Test { //1.第一步,准备加载类 public static void main(String[] args) { new Test(); //4.第四步,new一个 ...

  9. 从阿里巴巴笔试题看Java加载顺序

    一.阿里巴巴笔试题: public class T implements Cloneable { public static int k = 0; public static T t1 = new T ...

随机推荐

  1. PHP 高级编程(1/5) - 编码规范及文档编写

    PHP 高级程序设计学习笔记20140612 软件开发中的一个重要环节就是文档编写.他可以帮助未来的程序维护人员和使用者理解你在开发时的思路.也便于日后重新查看代码时不至于无从下手.文档还有一个重要的 ...

  2. 逆向工程 - Reveal、IDA、Hopper、HTTPS抓包 等

    目录: 一. iOS 如何做才安全 二.ipa文件 三.沙盒 中的数据 四.Reveal:查看 任何APP 的UI结构 五.反编译工具:IDA 六.反编译工具:Hopper Disassembler ...

  3. YYModel 源码解读(一)之YYModel.h

    #if __has_include(<YYModel/YYModel.h>) FOUNDATION_EXPORT double YYModelVersionNumber; FOUNDATI ...

  4. JavaScript知识点总结(命名规范,变量的作用域)

    命名规范 有人说JavaScript的宽容性是这个语言最糟糕的方面之一.比如说想把2个数字加在一起,JavaScript会把其中一个数字解析成字符串,那么就会得到一个奇怪的字符串,而不是2个数字的和. ...

  5. windows环境tomcat8配置Solr5.5.1

    前言 前前后后接触Solr有一个多月了,想趁着学习Solr顺便把java拾起来.我分别用4.X和5.X版本在windows环境下用jetty的方式.tomcat部署的方式自己搭建了一把.其中从4.x到 ...

  6. 安装nodejs express框架时express命令行无效

    我也是看了这篇才明白.http://jingyan.baidu.com/article/922554468a3466851648f419.html 最近在看一本书,nodejs开发指南.至于出现这个问 ...

  7. 初识Hadoop

    第一部分:              初识Hadoop 一.             谁说大象不能跳舞 业务数据越来越多,用关系型数据库来存储和处理数据越来越感觉吃力,一个查询或者一个导出,要执行很长 ...

  8. JavaScript原型链分析

    Js之原型链    1.object 与 Object        1.object是类型,表示对象类型        2.Object是函数    2.js成员的访问规则        o.方法( ...

  9. Windows下删除.svn文件夹的最简易方法

    建立一个文本文件,取名为kill-svn-folders.reg(扩展名由txt改为reg),内容如下: Windows Registry Editor Version 5.00 [HKEY_LOCA ...

  10. java.lang.Class.isPrimitive()用法解析

    一.概述: 此方法主要用来判断Class是否为原始类型(boolean.char.byte.short.int.long.float.double). 二.格式: Class.isPrimitive( ...