Static Type language : Is a language in which compiler don’t have ability to detect type automatically.
Dynamic Type language : Is a language in which compiler have ability to detect type automatically.
Strongly typed Language : In which type should be used strictly. ex. can not assign string value to int variable
Weakly typed Language : In which type could not be used strictly. ex. can assign string value to int variable
So java is a static type language as well as strong type language, because compiler has no ability to detect type automatically, so it’s static, and type is strongly restricted so it’s a strong type language as well.
So based on above examples, you could say as swift allows us to not declare type and leave to the compiler to detect type by it self, so swift is announced as a dynamic type language by Apple official. And it’s also a strong type language for you should use type strictly, when even you haven’t declare type, if the compiler detect it to be a String, then it isn’t any other type.
Hope you find this blog useful. Please feel free to contact with me in case you have any query, suggestions. You can comment, like and follow posts. Please take a few seconds and share it with your friends!
You can request any topic related to Swift and iOS development.
Donate any small amount you think for this knowledge to grow this forum.
To Donate – paypal.me/SandeshSardar