Question: what is instance variable constructor in java?
Answer: Constructor is a special member function in java which doesn't have any return type. Its name is same as the class name. A constructor of the class is called every time an object is created. Instance variable means the non-static member variables declared inside a class.