1. class Convert {2. public static void main(String[] args) {3. Long xL = new Long(456L);4. long x1 = Long.valueOf("123");5. Long x2 = Long.valueOf("123");6. long x3 = xL.longValue();7. Long x4 = xL.longValue();8. Long x5 = Long.parseLong("456");9. long x6 = Long.parseLong("123");10. }11. }