Definition: Name of memory location is called a variable. There are 3 types of variables: 1. local variable: A variable which is declared in the method itself is called as Local variable. 2. instance variable: A variable declared in the class but outside of the method is called as Instance variable. 3.static variable: Any variable which is declared as static is called as static variable. and it cannot be local. Two types of datatypes in java: 1. Primitive datatype: it divided into boolean and numeric wheras Numeric is divided into character and integral. Integral is divided into integer and floating-point. 2. Non-primitive datatype: it is classified as string, array etc. Solution Definition: Name of memory location is called a variable. There are 3 types of variables: 1. local variable: A variable which is declared in the method itself is called as Local variable. 2. instance variable: A variable declared in the class but outside of the method is called as Instance variable. 3.static variable: Any variable which is declared as static is called as static variable. and it cannot be local. Two types of datatypes in java: 1. Primitive datatype: it divided into boolean and numeric wheras Numeric is divided into character and integral. Integral is divided into integer and floating-point. 2. Non-primitive datatype: it is classified as string, array etc..