We would like to know how to 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); } }
The code above generates the following result.