摘要: 同一个作用域范围的包裹下局部变量和局部变量不可以变量名相同(作用域内不能重复命名). You can't use the instanceof operator to test across two different class hierarchies. Precedence Hierarchy 阅读全文
posted @ 2021-01-18 18:00 Leon-HB 阅读(38) 评论(0) 推荐(0)
摘要: A runtime exception is defined as the RuntimeException class and its subclasses. Runtime exceptions tend to be unexpected but not necessarily fatal. a 阅读全文
posted @ 2021-01-18 17:51 Leon-HB 阅读(39) 评论(0) 推荐(0)
摘要: 1. Class Inheritance class access modifiers: public and default package-level class access modifiers, because these are the only ones that can be appl 阅读全文
posted @ 2021-01-18 17:27 Leon-HB 阅读(49) 评论(0) 推荐(0)
摘要: 1. Method Declaration Access Modifiers Java offers four choices of access modifier: public: The method can be called from any class. private: The meth 阅读全文
posted @ 2021-01-18 16:48 Leon-HB 阅读(65) 评论(0) 推荐(0)
摘要: 1. Class String API stands for application programming interface. If both operands are numeric, + means numeric addition. If either operand is a Strin 阅读全文
posted @ 2021-01-16 18:59 Leon-HB 阅读(90) 评论(0) 推荐(0)