Kotlin theorytheory 0/50 · 0%
Fundamentals · easy

20. Type Inference

Reducing boilerplate.

Kotlin can often infer the type of a variable from its initializer.

Check your understanding

  1. 1. Do you always need to specify type?

  2. 2. Benefit of type inference?