Programming languages can easily distinguished into two main types as per variable declaration.
Strongly typed languages are those that strictly need or require variable type declaration at time of declaring a variable. For example.
// Java String name = "John Doe"; // C++ string name = "John Doe"; // C# string name = "John Doe";
All above variable declarations in Java, C++ and C# will be incorrect if we remove or don’t use “String” at start our statement.
Loosely typed languages are opposite of strongly typed languages. As they allow you to declare a variable without telling or adding variable type at time of declaration. For example.
Almost all loosely typed languages determine variable type using information stored in a variable or the way we declare a variable. For example.
Now you should know difference between Strongly typed and Loosely typed programming languages.
Let’s move on to next chapter of this course. Please click on “Next” to continue.