会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yumeixiaosheng
博客园
首页
新随笔
联系
订阅
管理
2024年5月27日
类中代码执行的顺序
摘要: 1、先执行静态代码块 点击查看代码 public class ClassTest { static{ System.out.println("静态代码执行了"); } public static void main(String[] args) { System.out.println("main方
阅读全文
posted @ 2024-05-27 16:57 愚昧小生
阅读(58)
评论(0)
推荐(0)
公告