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 route in web api?
What is the difference between custom web user control and a custom web server control?
Is asp.net is a programming language?
Is asp.net and .net same?
Can we make activex dll also ti execute in some process as that of client ? How can we do?
What is the life cycle of web page?
What is asp.net with mvc? : Asp.Net MVC
How Session use Cookies in State Management?
What is the difference between union and structure?
what is silver light when will we use silver light,
What is the difference between a page theme and a global theme?
How does session id work?
Explain parts of assembly?
Why is xap important?
Explain the concept of event bubbling in ASP.NET?