摘要: 一.final数据 1-1 编译期常量 定义:带有①编译时数值(区别于运行时数值)的②final③基本数据类型的量。 注意: 既是static又是final的量不一定是编译期常量; public class NotCompileTimeConstant { static Random random 阅读全文
posted @ 2021-04-14 14:47 certainTao 阅读(81) 评论(0) 推荐(0)
摘要: 了解包括继承在内的初始化全过程: class Insect { private int i = printInit("Insect.i initialized");; protected int j; Insect() { System.out.println("i= " + i + ", j= " 阅读全文
posted @ 2021-04-14 14:45 certainTao 阅读(123) 评论(0) 推荐(0)