There are three different types of variables a class can have in Java are local variables, instance variables, and class/static variables .
There are three different types of variables a class can have in Java are local variables, instance variables, and class/static variables .