Create a free account on Computer Sir Ki Class and unlock access to valuable learning resources.
Exam Paper Downloads: After registering and logging in, you can download exam question papers in PDF format to practice and prepare for your exams.
Student Support: Get assistance with your doubts, queries, and questions related to your studies. Our support is here to help you understand topics and resolve your learning difficulties.
Register today and make your exam preparation easier and more effective!
State the difference between == operator and equals() method.
Answer:
The == (equals to comparison operator) compares the value of variables, while the equals() method is meant to compare if two objects are pointing to same memory location. In practical usage equals method are often overloaded to return true or false.
C. Sir| Created: 31-Mar-2018 | Updated: 16-Apr-2019|ICSE2016