Click here to Skip to main content
15,888,059 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hello Friends,
I was reading a description about statically and strongly typed language.
It said:

Quote:
1)Statically Typed Language:
Languages in which the data types are defined explicitly.
Types are fixed during compile time.


Quote:
Strongly Typed Language:
The type is enforced here.
Suppose i give an integer value to the variable then it will be an integer i will have to convert it to string by explicitly converting it.



So whats the difference between the 2. Because in both we will know the type.
Can a statically typed language be a weakly typed language?

Thanks,
-Rahul
Posted
Comments
Praveen Kumar Upadhyay 27-Apr-15 6:27am    
In Statically typed Language, compiler knows at the compile time with the explicit type defined to that variable.

In Strongly typed language, memory allocation defines at the run time I guess by knowing it's value and once memory is allocated for that type then to allocate memory for another data type, we need to explicitly convert it.
Rahul VB 27-Apr-15 7:23am    
Thanks a lot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900