The literal of int xxxxx is out of range
<p>I am slightly puzzled as I am working with data types at the moment in Java, and if I have understood correctly the type <code>long</code> accepts a value between the ranges of: -9,223,372,036,854 to +9,223,372,036,854,775,807. Now as you can see below I have create a Long variable called <code>testLong</code>, although when I insert 9223372036854775807 as the value, I get an error stating:</p>

<blockquote>
  <p>"The literal of int 9223372036854775807 is out of range."</p>
</blockquote>

<p>I don't know why it is referring to the <code>long</code> data type as an <code>int</code> :S</p>

<p>Anyone have any ideas?</p>

<p>Code Below:</p>

<pre><code>char testChar = 01;
byte testByte = -128;
int testInt = -2147483648;
short testShort = -32768;
long testLong = 9223372036854775807;
float testFoat;
double testDouble = 4.940656458412;
boolean testBool = true;
</code></pre>
