Junior
22
0
questionbank

Какие примитивные типы данных существуют в Kotlin и Java?

Answer from sobes.tech neural network

В Kotlin:

  • Byte (8-бит Int)
  • Short (16-бит Int)
  • Int (32-бит Int)
  • Long (64-бит Int)
  • Float (32-бит Float)
  • Double (64-бит Float)
  • Boolean (true/false)
  • Char (1 символ)

В Java:

  • byte (8-bit signed two's complement integer)
  • short (16-bit signed two's complement integer)
  • int (32-bit signed two's complement integer)
  • long (64-bit signed two's complement integer)

В Kotlin:

  • Byte (8-бит Int)
  • Short (16-бит Int)
  • Int (32-бит Int)
  • Long (64-бит Int)
  • Float (32-бит Float)
  • Double (64-бит Float)
  • Boolean (true/false)
  • Char (1 символ)

В Java:

  • byte (8-bit signed two's complement integer)
  • short (16-bit signed two's complement integer)
  • int (32-bit signed two's complement integer)
  • long (64-bit signed two's complement integer)

Register or sign in to get access to full answers for all questions from the question bank.

data-typesprimitive-typesjvmlanguage-interoperability