best position to declear variable in java code example Example: java variable declaration java decleration float simpleInterest; //Declaring float variable