1.[start-all.sh] #!/usr/bin/env bash # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. #…
16.interface中的成员变量默认为public static final类型,方法只能是public(默认为public) 17.内部类访问外部类成员: Outer.this.num; 18.一道有趣的题目 使用内部类实现该程序.(答案附在本文末尾) interface Inter { void show(); } class Outer { /* */ } public class Test { public static void main(String[] args) { Oute…