Mega Code Archive

 
Categories / Java / Data Type
 

What is Autoboxing

import java.util.HashMap; import java.util.Map; public class Main {   public static void main(String[] args) {     Map<String, Integer> map = new HashMap<String, Integer>();     map.put("Age", 25);     int age = map.get("Age");     Integer newAge = age + 10;   } }