What is strong-typing versus weak-typing? Which is
preferred? Why?
Answers were Sorted based on User's Feedback
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 |
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 |
WHAT IS BOXING? HOW WE CAN USE IT?
How do you handle server controls?
what are the Custom controls in asp.net?
What would be salary for 6+ years of experience in ASP.NET in different metro city in india?
Define xmlvalidatingreader class.
What is the difference between runtime version and version?
How does exception management works in ASP.NET?
What are the intrinsic objects present in ASP.NET
In which event of the page life cycle, is the viewstate available?
What is the purpose of master page?
Explain about consistent programming model in the .NET framework?
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.