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
Why do we use sessions?
Explain the asp.net mvc request life cycle? : asp.net mvc
What are validator? Name the validation controls in asp.net?
What is asp.net and its advantages?
What is the compiled object?
Define a web service in .net?
How do I know asp.net mvc version? : Asp.Net MVC
What is sdlc process?
What is considered a service provider?
Explain diff. Between friend and protected friend?
Explain security types in asp.net?
Explain the function of new view engine in asp.net? : asp.net mvc
What is routing in MVC?
Explain how dot net compiled code will become platform independent?
Explain how cookies work. Give an example of cookie abuse.