Create Long from long value

public class Main {
  public static void main(String[] argv) throws Exception {
    Long refLong = new Long(123L);
    long l = refLong.longValue();
  Java Book 
    Runnable examples  

Data Type Long:
  1. Create Long from long value
  2. Convert Long to numeric primitive data types
  3. Convert Long to String
  4. Convert byte value to mega byte value
  5. Min and Max values of datatype long