If I can use Integer as int, and int as Integer (wherever is required one over the other), why this code does give err:
public class Foo { Integer i;