Java Term of the Week: Strongly Typed
Saturday November 22, 2008
Java is a strongly typed programming language because every variable must be declared with a data type before it can be used. Once it is declared, the data type of the variable cannot change. The variable will only be able to hold values that correspond to that data type. For example, the String variable "myDataType":
String myDataType = "Yippee I have a data type";
cannot suddenly start accepting int values:
myDataType = 123; //error: incompatible types


Comments
No comments yet. Leave a Comment