Showing posts with label Technical Interview Questions. Show all posts
Showing posts with label Technical Interview Questions. Show all posts
Wednesday, April 14, 2010
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
- 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.
Visit VBSrinivasan
Posted by
GATE ACT
at
10:53 PM
Core Java
1)What is OOPs?
- Ans: Object oriented programming organizes a program around its data,i.e.,objects and a set of well defined interfaces to that data.An object-oriented program can be characterized as data controlling access to code.
- Ans: a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOPs program, unit of program is object, which is nothing but combination of data and code.
- b) In procedural program,data is exposed to the whole program whereas in OOPs program,it is accessible with in the object and which in turn assures the security of the code.
- Ans: Encapsulation is the mechanism that binds together code and data it manipulates and keeps both safe from outside interference and misuse.Inheritance is the process by which one object acquires the properties of another object.Polymorphism is the feature that allows one interface to be used general class actions. Read more Download Entire Document...
Subscribe to:
Posts (Atom)