Which of the following statements is correct in this python code?

class Name: 

    def __init__(quizall):  

        javabooks = 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
4
All of these

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation