MCQ Single Best Answer Easy

QWhat is the numerical range of a long data type in Java?

ID: #22186 long - Data Type in Java 79 views
Question Info
#22186Q ID
EasyDifficulty
long - Data Type in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A -128 to 127
  • B -32768 to 32767
  • C -2147483648 to 2147483647
  • D -9223372036854775808 to 9223372036854775807
Correct Answer: Option D

Explanation

The long data type in Java is a 64-bit signed integer, ranging from -9223372036854775808 to 9223372036854775807. It is used for large integer values that exceed the range of int.

No Previous Next Question

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions