•In Modula,
all variables have to be declared
•In Java,
all variables have to be declared
–Variables can be initialized when declared.
–Examples:
•int a =
3;
•int b = 8
* 5;
•float pi =
3.0;
•char key =
'c';
•String
Title = "Data declarations";
•boolean
EndOfList = true;
•