Java Term of the Week: Strongly Typed
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


No comments yet. Leave a Comment