Convert long primitive to Long object Example
public class Main { public static void main(String[] args) { long i = 10; Long lObj = new Long(i); System.out.println(lObj); } }