Tag Archives: kotlintutorial

Literal Constants

Kotlin constants are fixed values that does not change during program execution.
These fixed values are called literals.

Kotlin constatns can be of any basic data types.

  • Integer constants
  • Floating point constants
  • Character constants
  • String literals etc.
Octal literals (numbers in base 8) are not supporte in Kotlin

Continue reading Literal Constants

Follow and like us:

Characters and Strings

Kotlin characters and strings are exactly the same things as Java strings. You can pass a char/string created in Kotlin code to any Java method, and you can use any Kotlin standard library methods on chars/strings that you receive from Java code. No conversion is involved, and no additional wrapper ojbects are created.

Continue reading Characters and Strings

Follow and like us: