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 difference cookie and session?
Is asp.net outdated?
Explain serialization and deserialization?
Explain why datareader is useful?
Define msil.
What do you mean by caching in asp.net?
Does web services support data reader like pom project?
can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?
What is a windows service?
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.
Explain the use of view state?
what is command line compiler.what are the steps and how it is related to debugging.
Can you explain architecture of your project ?
What is a user developed application?
How do you open a page in a new window?