Suppose i have a class "TEST" What is the difference between
TEST obj = new TEST();
TEST obj = null;
TEST obj = null; -- means that the object is set to nothing or null reference. when trying to accees ,the object initialized as TEST obj = null; will throw a nullreferenceexception.
TEST obj = new TEST(); -- indicates a valid initialization, obj helds reference to type test.i.e some memory has been allocated by the .net framework for it.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?