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

Answers were Sorted based on User's Feedback



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

Answer / vetri

Strong type is checking the types of variables as soon as
possible, usually at compile time. While weak typing is
delaying checking the types of the system as late as
possible, usually to run-time. Which is preferred depends
on what you want. For scripts & quick stuff you’ll usually
want weak typing, because you want to write as much less
(is this a correct way to use Ensligh?) code as possible.
In big programs, strong typing can reduce errors at compile
time.

Is This Answer Correct ?    8 Yes 1 No

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

Answer / kirti

Strong typing implies that the types of variables involved in operations are associated to the variable, checked at compile-time, and require explicit conversion; weak typing implies that they are associated to the value, checked at run-time, and are implicitly converted as required. (Which is preferred is a disputable point, but I personally prefer strong typing because I like my errors to be found as soon as possible.)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

WHAT IS BOXING? HOW WE CAN USE IT?

4 Answers   Seion Infotech,


How do you handle server controls?

0 Answers   Cap Gemini,


what are the Custom controls in asp.net?

0 Answers   MCN Solutions,


What would be salary for 6+ years of experience in ASP.NET in different metro city in india?

4 Answers  


Define xmlvalidatingreader class.

0 Answers  






What is the difference between runtime version and version?

0 Answers  


How does exception management works in ASP.NET?

0 Answers   Alcatel-Lucent,


What are the intrinsic objects present in ASP.NET

1 Answers   IBM,


In which event of the page life cycle, is the viewstate available?

0 Answers  


What is the purpose of master page?

0 Answers  


Explain about consistent programming model in the .NET framework?

0 Answers  


What is a transaction? a) A banking term. b) A concept used to describe a step in the business process. c) A combination of DML steps that must succeed or the data is retuned to its initial state. d) A combination of DDL steps that must succeed or the data is retuned to its initial state.

5 Answers   Syntax Softtech,


Categories