Long class creates primitives that wrap themselves around data items of the long data type
public class MainClass { public static void main(String[] args) { long l = 10000000l; Long l2 = new Long(l); System.out.println(l2.longValue()); } }