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 / jitender

we can assign the refrence of the object to other object.
since both object have the same memory . if we change the 1
obj then refrence to memeory of 1 obj will get deleted but 2
obj still refers to the same memory location certantily it
will work.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who can consume WebAPI?

761


Which asp.net objects encapsulate the state of the client and the browser?

793


When was asp.net released?

747


What is state management techniques in asp.net?

753


Hi this is the coding for adding data in to an xml table i want the coding for update and delete Try Dim emp_xml_doc As New XmlDocument If System.IO.File.Exists(Server.MapPath("emp.xml")) Then emp_xml_doc.Load(Server.MapPath("emp.xml")) Dim myrow_element As XmlElement myrow_element = emp_xml_doc.CreateElement("EmpDetails") Dim str As String str = "" & TxtEmpId.Text & "" & _ "" & TxtName.Text & "" & _ "" & TxtSalary.Text & "" myrow_element.InnerXml = str emp_xml_doc.DocumentElement.AppendChild(myrow_element) emp_xml_doc.Save(Server.MapPath("emp.xml")) Response.Write("Record Saved") Dim ds As New DataSet ds.ReadXml(Server.MapPath("emp.xml")) GridView1.DataSource = ds GridView1.DataBind() Else Response.Write("File does not exist.") End If Catch ex As Exception Response.Write(ex.ToString) End Try *********************** this is the xml file 100 xxx 2000 yyy dddd 77777 rrrr rrrr 6666 qaqa sini 50000 errrrrrrrr rrrrrrrrr 677777 rrr rrr 33

1937


Explain one critical mapping?

773


What are Master Pages in ASP.NET?

774


Which is better php or asp.net?

711


What is a postback in asp net?

800


To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?

810


What is difference between cookies and cache?

761


What are the major built-in objects in ASP.NET?

813


Explain transparent caching with aop?

709


Where would you use an ihttpmodule, and what are the limitations if any?

754


How to Separate background image and front image from original picture....

747