Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 567 Bytes

File metadata and controls

16 lines (14 loc) · 567 Bytes

Kotlin Question List

1.Kotlin 特性,和 Java 相比有什么不同的地方

  • 全面支持Lambda表达式
  • 数据类(Data Classes)
  • 函数字面量和内联函数(Function literals & Inline functions)
  • 函数扩展(Extension functions)
  • 空安全(Null safety)
  • 智能转换(Smart casts)
  • 字符串模板(String templates)
  • 主构造函数(Primary constructors)
  • 类委托(Cleass delegation)
  • 类型推断(Type inference)
  • 声明点变量(Declaration-site variance)
  • 区间表达式(Range expressions)