-
What does assertSame() method use for assertion?
-
- isEqual() method
- compare() method
- equals() method
- ==
- None of these
Correct Option: D
== 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.