摘要: static修饰的属于类本身,没有static修饰的属于实例。 创建类时,static修饰的成员存放在堆内存中的permanent代,permanent代存放类的信息,如类中的static的成员: class a { static int n = 4; public static void main 阅读全文
posted @ 2023-03-29 09:42 epiphanyy 阅读(24) 评论(0) 推荐(0)