摘要:
两句 分开写 String s = new String("abc"); String s = "abc"; 前者创建2个对象 后者创建1个对象 如果是在同一个程序,只有这两句话 String s1 = new String("abc"); String s2 = "abc"; 前者创建了2个对象, 阅读全文
posted @ 2022-03-03 20:39
Ging2000
阅读(99)
评论(0)
推荐(0)
摘要:
在标识处编写程序输出 HelloWorld 1 public class test { 2 public static void main(String[] args) { 3 Outer.method().show(); 4 } 5 } 6 7 interface Inter { 8 void s 阅读全文
posted @ 2022-03-03 00:26
Ging2000
阅读(39)
评论(0)
推荐(0)
摘要:
1 interface class Inter { 2 public abstract void show(); 3 public abstract void show2(); 4 } 5 6 class Demo { 7 public void method() { 8 Inter i = new 阅读全文
posted @ 2022-03-03 00:03
Ging2000
阅读(28)
评论(0)
推荐(0)

浙公网安备 33010602011771号