what is the purpose of new keyword while creating an object?
Answers were Sorted based on User's Feedback
Answer / vasantha
new keyword is used the memory is allocated at runtime for
object
Is This Answer Correct ? | 19 Yes | 2 No |
Types cannot be used without being instantiated. To
instantiate a type, you use the new operator, which invokes
the logic specified in the constructor. After completion,
the constructor returns a new instance of the specified
type—this instance can now store data as your C# program
executes.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / mahendra
creating object memory and non static variable memory with default
Is This Answer Correct ? | 0 Yes | 0 No |
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
What is a trace and asset? Explain some differences?
Why hashtable is thread safe in c#?
What is the difference between static and private constructor in c#?
What is difference between comparable and comparator?
Can you inherit multiple interfaces?
How more than one version of an assembly can keep in same place?
How do switch statements work?
What is delegate in c# interview questions?
What is the difference between console and windows application?
What is string class in c#?
What is the C# syntax to catch any possible exception?