What is the variable declaration of java?
One little typo in 1st line of above answer sorry its due autocorrect its "telling the program" not "telling the problem" thanks
Declaring variable means telling the problem about a property or a variable that can hold a value. Variables can be declared either with assigned value or without assigning a value for later use. Here is example :
String myName = "Motsim";
Notice, for totalSeconds, no value is assigned to the variable but declared for later use. However, myName is assigned a value along with declaration. We can use both ways according to our needs.