Computer Science, asked by ayushipalwankar6364, 1 year ago

Which datatype to use to save data upto 12 digits in jvaa?

Answers

Answered by rohitroy6158pd7fu2
0
Your concrete example could be stored in long (or java.lang.Long if this is necessary).

If at any point you need bigger numbers, you can try java.math.BigInteger (if integer), or java.math.BigDecimal (if decimal)

Answered by SohamKundu012
0

Answer:

Integers

Explanation:

Datatypes are used to determine the nature of the variable .

When we specify that a variable has a certain datatype we say what values the expression may have .

Explanation:

The datatypes are :

  • Byte .
  • Short .
  • Char .
  • Int .
  • Float .
  • Long .
  • Double .
  • Boolean .
  • String .
Similar questions