Java中static的用法 先从一些简单的例子说起:class A{ static int i = 10; public A() { }}public class TestStatic_1{ public static void main(String[] args) { A aa1 = new A(); A aa2 = new A(); aa1.i = 20; System.o Java 2024-01-07 44 点赞 0 评论 66 浏览