title: Initialize a long in Java
body: <p><a href="http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html" rel="noreferrer">Primitive Data Types - oracle doc</a> says the range of <strong><code>long</code></strong> in Java is <code>-9,223,372,036,854,775,808</code> to <code>9,223,372,036,854,775,807</code>.
  But when I do something like this in my eclipse</p>
  
  <pre><code>long i = 12345678910;
  </code></pre>
  
  <p>it shows me "<code>The literal 12345678910 of type int is out of range</code>" error.</p>
  
  <p><strong>There are 2 questions.</strong></p>
  
  <p>1) How do I initialize the <strong><code>long</code></strong> with the value <code>12345678910</code>?</p>
  
  <p>2) Are all numeric literals by default of type <strong><code>int</code></strong>? </p>