What are different Java declarations and their associated rules?
All variables in Java are introduced/declared with some basic datatypes with some basic values, e.g. every decimal value by default is a double.The names of variables must avoid reserved Java keywords.The local variables are explicitly initialized.