Java is a statically-typed programming language . It means, all variables must be declared before its use. That is why we need to declare variable’s type and name.
Java is a statically-typed programming language . It means, all variables must be declared before its use. That is why we need to declare variable’s type and name.