Praveen's Blog

August 19, 2011

Dynamically Typed, Statically Typed, Strongly Typed, Weakly Typed

Filed under: Tech stuff — Tags: , , , — praveenmyls @ 7:30 am

A Programming language can be Dynamically Typed, Statically typed, Strongly Typed and Weakly Typed. Whats the difference?
Dynamically Typed:
There is no type check at compile time. If you pass wrong parameter types to a method, no compilation errors occur. Runtime failures happen. Examples are Ruby, Python.
Statically Typed:
There is type check at compile time. If you pass wrong parameter types to a method, compilation errors occur. Example : Java
Weakly Typed:
If type conversion happens, when you send different parameter to that expected (If possible, ofcourse).
Strongly Typed: NO type conversion happens, when you send different parameter to that expected (If possible, ofcourse).

Ruby is Strongly typed and dynamically typed.

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: WordPress Classic. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.