I came across this section in some class notes:
Java programs are what is known as statically and strongly typed.
I'm familiar with the concept of static or dynamic types, but haven't come across strong/weak types, and in looking them up there is always some wishy-washy definition.
In the above, what would be an example of how Java is strongly typed? Does it just mean that you cannot cast one type to another (but what about casting an int
to a long
or something of the same conceptual type)? How does the concept of strong/weak types relate to Java?