摘要: package com.oop.demo07;public class Person { //1 赋初值 { System.out.println("匿名代码块"); //代码块(匿名代码块) } //2 static代码块只执行一次 static { System.out.println("静态代 阅读全文
posted @ 2022-05-11 23:07 1号小白学编程 阅读(28) 评论(0) 推荐(0) 编辑