Types

The type of a variable, with respect to its value space, is the set of possible values that the variable can possess. In many cases, it is useful to be able to explicitly specify the type of value you want to be held by a variable being declared. This can be done using a data type.

Some important types in Kotlin are:

  • Int
  • Float
  • Double
  • Boolean
  • String
  • Char
  • Array
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.173.199