Strongly Typed

Format
mla apa chicago
Your Citation
Leahy, Paul. "Strongly Typed." ThoughtCo, Jun. 1, 2017, thoughtco.com/strongly-typed-2034295. Leahy, Paul. (2017, June 1). Strongly Typed. Retrieved from https://www.thoughtco.com/strongly-typed-2034295 Leahy, Paul. "Strongly Typed." ThoughtCo. https://www.thoughtco.com/strongly-typed-2034295 (accessed September 20, 2017).
Man working on a computer
Abel Mitja Varela/E+/Getty Images

Definition:

Java is a strongly typed programming language because every variable must be declared with a data type. A variable cannot start off life without knowing the range of values it can hold, and once it is declared, the data type of the variable cannot change.

Examples:

The following declaration is allowed because the variable has "hasDataType" is declared to be a boolean data type:


boolean hasDataType;

For the rest of its life, hasDataType can only ever have a value of true or false.

Format
mla apa chicago
Your Citation
Leahy, Paul. "Strongly Typed." ThoughtCo, Jun. 1, 2017, thoughtco.com/strongly-typed-2034295. Leahy, Paul. (2017, June 1). Strongly Typed. Retrieved from https://www.thoughtco.com/strongly-typed-2034295 Leahy, Paul. "Strongly Typed." ThoughtCo. https://www.thoughtco.com/strongly-typed-2034295 (accessed September 20, 2017).