suppose we have two object;obj1 and obj2
can we assign obj2 to one1;
and if yes; then after assigning suppose we delete obj2
then obj1 will retain obj2 value or not.
Answer Posted / masthan
see this example
parentclass obj1=new parentclass();
childclass obj2=obj1;//assign object to the reference of
childclass.here both obj1 and obj2 refer same memory
location.
obj1=null;//here obj1 losts the memory
console.write(obj2);//it refers same memory location
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of master page?
What is the difference between a page theme and a global theme?
Explain the Order of events in an asp.net page?
What is the maximum amount of memory any single process on windows can address?
is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?
What is repository pattern in mvc.net? : asp.net mvc
Can we override the enablepartialrendering property of the scriptmanager class?
What is meant by server side scripting?
What is application variable?
What is the size of Get method and how much data it can store?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
Why Unload event of MasterPage Calls first in ASP.net ?
What is ASLM?
What type of code, client-side or server-side, is found in a code-behind file of a Web page?
How does session authentication work?