-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathB.java
More file actions
46 lines (35 loc) · 886 Bytes
/
Copy pathB.java
File metadata and controls
46 lines (35 loc) · 886 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
37
38
39
40
41
42
43
44
45
46
package top.gonefuture.java;
import top.gonefuture.java.B;
/**
*
class B{
public static B t1 = new B();
public static B t2 = new B();
{
System.out.println("构造块"); }
static { System.out.println("静态块"); }
public static void main(String[] args)
{ B t = new B(); }
} * @Title: B.java
* @Package
* @Description: TODO(用一句话描述该文件做什么)
* @author: qianweijian gonefuture@qq.com
* @date: 2018年7月9日 下午4:19:08
* @version V1.0
*/
/**
* @author gonefuture
*
*/
public class B {
public static B t1 = new B();
public static B t2 = new B();
{
System.out.println("构造块");
}
static {
System.out.println("静态块");
}
public static void main(String[] args)
{ B t = new B(); }
}