What is strong-typing versus weak-typing? Which is preferred? Why?

What is strong-typing versus weak-typing? Which is preferred? Why?

- In weak typing, it is allowed to define a block of memory as another type (casting).

- Languages like C, C++ are weakly and statically typed.

- Languages like Perl and PHP are weakly typed as you can add numbers to strings and they will implicitly coerce it.

- Languages like Java, C# and Python are strongly typed. In these the type conversion needs to be explicitly handled.

- For scripts we use weak typing.

- In big programs, we use strong typing which can reduce errors at compile time.
What is a PID? How is it useful? - C#.NET
What is a PID? How is it useful? - PID stands for Process Identifier...
What is the GAC? What problem does it solve?
What is the GAC? What problem does it solve? - Any system that has the CLR (common language runtime) installed, has a machine-wide code cache known as GAC....
What is a Windows Service and how does its lifecycle differ from a "standard" EXE?
What is a Windows Service and its life cycle? - Windows Service applications are long-running applications that do not have a user interface...
Post your comment