DEV Community

Cover image for Static vs Dynamic Data Typed Languages
Lakshgupta
Lakshgupta

Posted on

1

Static vs Dynamic Data Typed Languages

Static Data type Languages:

  • Variables are judged at compile time.
  • Explicitly type declarations are required before hand.
  • Values are static types which can't be altered once set.
  • Produces more optimized code with the compile time performance check.
  • C , C++ , JAVA , GO
string language_type;
language_type = "static"
Enter fullscreen mode Exit fullscreen mode

language_type = 1

Dynamic Data type Languages:

  • Variables are evaluated at runtime.
  • No need to declare the data type before hand.
  • Values are dynamic and can be altered with their types.
  • Reduces extra efforts but in the end is less optimized as the code is prone to runtime errors.
  • PHP , Perl , Python , JavaScript
var language_type;
language_type = "dynamic"
Enter fullscreen mode Exit fullscreen mode

language_type = true

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay