Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Which of the following method asserts that both the objects refer to the same object?
Home
JAVA
Which of the following method asserts that both the objects refer to the same object?
0
votes
asked
Feb 12, 2020
in
JAVA
by
rahuljain1
Which of the following method asserts that both the objects refer to the same object?
assertFalse(obj1==obj2)
assernotSame(obj1,obj2)
assertEquals(obj1=obj2)
asserSame(obj1,obj2)
#junit-assert
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 13, 2020
by
SakshiSharma
asserSame(obj1,obj2)
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Is it possible for two unequal objects to have the same hashcode?
asked
Jan 27, 2020
in
JAVA
by
rahuljain1
#java-hashcode
Java-questions-answers
0
votes
Q: If three threads trying to share a single object at the same time, which condition will arise in this scenario?
asked
Apr 10, 2021
in
JAVA
by
Robindeniel
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
0
votes
Q: Can you use abstract and final both with a method?
asked
Apr 30, 2021
in
JAVA
by
rajeshsharma
#abstract
final-keyword
Java-questions-answers
+1
vote
Q: This object can be used to access other implicit objects in JSP.
asked
May 29, 2020
in
JAVA
by
Hodge
#jsp
#java
Java-questions-answers
0
votes
Q: Given that Student is a class, how many reference variables and objects are created by the following code?
asked
Apr 9, 2021
in
JAVA
by
Robindeniel
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
0
votes
Q: Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
asked
Apr 8, 2021
in
JAVA
by
SakshiSharma
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
0
votes
Q: Which of the following can refer to both local as well as remote tables?
asked
May 13, 2020
in
Oracle
by
AdilsonLima
#oracle
0
votes
Q: Which class contains the clone method? Cloneable or Object?
asked
Oct 17, 2020
in
JAVA
by
rahuljain1
#clone-method
#clone-method-java
#java-clone-method
#clonable-object-java
Java-questions-answers
+1
vote
Q: Which class contains clone method? Cloneable or Object?
asked
Jan 24, 2020
in
JAVA
by
rahuljain1
#java-clone
#clone-method
Java-questions-answers
+1
vote
Q: Which of the following annotation causes that method run after each test methods?
asked
Feb 12, 2020
in
JAVA
by
rahuljain1
#annotation-method
Java-questions-answers
...