public class Main { public static void main(String[] args) { long l = 10; Long longObj1 = new Long(l); Long longObj2 = new Long("5"); System.out.println(longObj1); System.out.println(longObj2); } }