是否可以继承 String 类?
String 类是 final 类故不可以继承。
abstract 的 method 是否可同时是 static,是否可同时是 native,是否可同时是 synchronized?
都不能
List, Set, Map 是否继承自 Collection 接口?
List,Set 是
Map 不是
Java 有没有 goto?
Goto?java 中的保留字,现在没有在 java 中使用。
String s = new String(“xyz”);创建了几个 String Object?
两个对象,一个是“xyx”,一个是指向“xyx”的引用对象 s。