What is the use of "default" and "Using" keyword?

Answer Posted / ravi

"default" ensures the correct initialisation takes place
and "Using" ensures the disposal of object.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In object oriented programming, how would you describe encapsulation in c#?

542


What is the difference between continue and break statement?

523


Tell me the difference between call by value and call by reference.

538


Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.

599


Is a decimal an integer?

478






What is serialization in .net?

566


Explain the difference between “constant” and “read-only” variables used in c#?

511


Are enums static c#?

504


What is data set in c#?

502


How do you escape in c#?

506


What are primitive data types in c#?

525


Can structs in c# have destructors?

550


What does return do in unity?

541


Define method overloading in c#?

592


Name the property of the textbox which cannot be changed at runtime?

526