forked from Jossc/JavaCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA.java
More file actions
37 lines (27 loc) · 479 Bytes
/
A.java
File metadata and controls
37 lines (27 loc) · 479 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.jvm.bytecode;
/**
* @author by chenzhuo
* @Description
* @Date 2019/7/9 10:55
**/
public class A {
}
class C {
static {
System.out.println("C init");
}
public C() {
System.out.println("C Instance");
}
}
class B extends C {
static {
System.out.println("B init");
}
public B() {
System.out.println("B Instance");
}
public static void main(String[] args) {
C c = new B();
}
}