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
Explain what the contents of cookie?
What is difference between asp.net and asp?
What are the events in a page life cycle?
Disable browser cache for entire ASP.NET website?
Why should i prefer JSP over asp.net or any other web development language..??
How does u call and execute a sp in .net?
What is asp according to you?
Can you explain architecture of your project ?
Can we override the enablepartialrendering property of the scriptmanager class?
What is the displayafter property in updateprogress control?
What is http post and http get?
Is a dll file an executable?
What is advantage of code behind coding in ASP.NET?
Describe how ASP.NET maintains process isolation for each Web application?
What are the Types of state management techniques