What does assertSame() method use for assertion?

What does assertSame() method use for assertion?
A. equals() method
B. isEqual() method
C. ==
D. compare() method
 
Answer: c
Explanation: == is used to compare the objects not the content. assertSame() method compares to check if actual and expected are the same objects. It does not compare their content.
 

Tìm kiếm

Back
Top