I want to know how Integer class works: Consider
Integer number=2;
Does this mean, "Integer" class has a constructor like mentioned below and it stores the int value in it? Please explain.
class Integer
{
int a;
public Integer (int a)
{
this.a=a;
}
}
Voidwhich doesn't have a public constructor (or a value inside)