Skip to content
Yash edited this page Oct 26, 2018 · 23 revisions

Class loading Example:

class AAA {
    static {
        System.out.println("Static A");
    }
    {
        System.out.println("Instance A");
    }
    AAA() { // Default Call to super(); Constructor
        System.out.println("Instance Constructor A");
    }
    void fun1() {
        System.out.println("A fun");
    }
}
class BBB extends AAA {
    static {
        System.out.println("Static B");
    }
    {
        System.out.println("Instance B");
    }
    BBB() { // Default Call to super(); Constructor
        System.out.println("Instance Constructor B");
    }
    @Override
    void fun1() {
        System.out.println("B fun");
    }
}
class Test {
    public static void main(String[] args) {
        AAA a = new BBB();
        a.fun1();
    }
}
/*
Static A
Static B
Instance A
Instance Constructor A
Instance B
Instance Constructor B
B fun
*/

Complete J2EE Notes:

site


Accounts:

Account

PrimeFaces User Interface. PrimeNG is a collection of rich UI components for Angular .


Online HTML page editors using css, javascript and HTML elements.

JSFiddle « Yashwanth M's public fiddles

: A Playground for the Web. My Pens


Online UML Diagram Tool:

Untitled Diagram. UML sample for editing form github.


Clone this wiki locally