待解决问题

来源:互联网 发布:大学生创业利弊知乎 编辑:程序博客网 时间:2024/05/02 02:45

Static Nested Class 和 Inner Class的不同?

 

HashMap是Hashtable的轻量级实现(非线程安全的实现),他们都完成了Map接口,主要区别在于HashMap允许空(null)键值(key),由于非线程安全,效率上可能高于Hashtable.

重写Overriding是父类与子类之间多态性的一种表现, 重载Overloading是一个类中多态性的一种表现。

 

最常见到的runtime exception?
ArithmeticException, ArrayStoreException, BufferOverflowException, BufferUnderflowException, CannotRedoException, CannotUndoException, ClassCastException, CMMException, ConcurrentModificationException, DOMException, EmptyStackException, IllegalArgumentException, IllegalMonitorStateException, IllegalPathStateException, IllegalStateException, 
ImagingOpException, IndexOutOfBoundsException, MissingResourceException, NegativeArraySizeException, NoSuchElementException, NullPointerException, ProfileDataException, ProviderException, RasterFormatException, SecurityException, SystemException, UndeclaredThrowableException, UnmodifiableSetException, UnsupportedOperationException

 

abstract class和interface有什么区别?

 

传递给 switch 和 case 语句的参数应该是 int、 short、 char 或者 byte;long,string 都不能作用于swtich。

 

原创粉丝点击