一,局部代码块
存在于方法里面(必须调用方法才可以)
public class Person{
public void run(){
System.out.println("局部代码块");
}
}
二,构造代码块
public class Person{
{
System.out.println("构造代码块");
}
}
三,静态代码块
public class Person{
static {
System.out.println("静态代码块");
}
}
四,同步代码块
synchronized(this) {
}
五,四种代码块执行顺序
静态代码块-->构造代码块-->构造函数-->局部代码块-->同步代码块

C#Web编程
WMsg参数常量值
IIS管理网站浏览
课程视频网址
CSS 学习质料
Centos镜像使用帮助
apache ab压力测试报错(apr_socket_recv: Connection reset by peer (104))
How to Configure Nginx for Optimized Performance
luarocks install with lua5.1 and luajit to install lapis
Copyright © 2011-2022 走看看