A constructor initializes an object immediately upon creation. If we do not explicitly define a constructor for a class, then java creates a default constructor for the class. The default constructor autometically initializes all instance variables to zero. So local variables doesn't initialized by default while class variable does.
Why local varial does't initialized by default while class variable may be?