Which of the following statements is correct in this python code? class Name:
def __init__(javatpoint):
javajavatpoint = java
name1=Name("ABC")
name2=name1
Question:Which of the following statements is correct in this python code? class Name:
def __init__(javatpoint):
javajavatpoint = java
name1=Name("ABC")
name2=name1
1.It will throw the error as multiple references to the same object is not possible
2.id(name1) and id(name2) will have same value
3.Both name1 and name2 will have reference to two different objects of class Name
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!