What is Java Variable and Datatypes
Variable is memory location name to be allocated.There are three types of variables in java:
Java Variable Types
Java Variable and Datatypes Example
class A{ int data=50;//instance variable static int m=100;//static variable void method(){ int n=90;//local variable } }
Java Data types
int(Data type) a,b,c; float(Data type) pi; double(Data type) d; char(Data type) a;