GithubHelp home page GithubHelp logo

letcode's Introduction

letCode

java code

="alternate_text"

图示

ClassLoad.java

package com.latin.study;

/**
 * @author: [email protected]
 * @date: 2019/9/16 13:35
 * @description: 分析类的实例化过程
 * @version: 1.0
 * @className: ClassLoad
 */
public class ClassLoad {

    public static void main(String[] args) {

        f1();
    }

    static ClassLoad ClassLoad = new ClassLoad();

    static {
        System.out.println("1");
    }

    {
        System.out.println("2");
    }

    ClassLoad(){
        System.out.println("3");
        System.out.println("a = " + a + ", b = " + b);
    }

    public static void f1(){

        System.out.println("4");
    }

    int a = 100;
    static int b = 200;
}

结果

展开ClassLoad的运行结果 ="alternate_text"

letcode's People

Contributors

latinos-bub avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.