加载变量的顺序

  • 8
  • 已锁定
找出初始化的内容和顺序。设置断点并使用调试程序。 更正数据初始化的顺序以获得以下结果: static void init() Static 块 public static void main 非 Static 块 static void printAllFields 0 null Solution 构造方法 static void printAllFields 6 名称
无法完成此任务,因为你尚未登录。
评论 (5)
  • 受欢迎
你必须先登录才能发表评论
Anonymous #10852681
级别 20 ,Wuhan,China
27 十月 2021, 00:51
类执行顺序:类的静态代码块→main()函数→构造代码块→构造器
Xu Yang
级别 20 ,Falls Church,United States
30 七月 2020, 02:18
HELP
Roman
级别 41
31 七月 2020, 05:59
Please refer to Help section at our course.
null
级别 17 ,Chengdu
17 三月 2021, 01:52
static void init()
Staticpublic static void main
非 Staticstatic void printAllFields
0
null
Solution 构造方法
static void printAllFields
6
名称
非 Static 块 和 名称 似乎应该是 非 static 块 和 姓氏
sky
级别 22
21 八月 2022, 08:52
是的感觉翻译有毒