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 the GAC? What problem does it solve?
  • Global Assembly Cache (GAC):
  • Any system that has the CLR (common language runtime) installed, has a machine-wide code cache known as GAC.
  • Assemblies deployed in the global assembly cache need to have a strong name.
  • The Global Assembly Cache tool (Gacutil.exe), provided by the .NET Framework SDK can be used to deploy assemblies to GAC.
Read More Download Entire Document...
Visit VBSrinivasan

0 comments: