Question: NEED HELP ASAP! MATCHING QUESTION!! In HW1, consider the code: Video Obj o = new Video Obj(a,1900, b); Video Obj 01 = new Video Obj(a,1900,

NEED HELP ASAP! MATCHING QUESTION!!

NEED HELP ASAP! MATCHING QUESTION!! In HW1, consider the code: Video Obj

In HW1, consider the code: Video Obj o = new Video Obj("a",1900, "b"); Video Obj 01 = new Video Obj("a",1900, "b"); Then: 01.equals(02) is true. Choose TRUE/FALSE. 1. Reflexive, Symmetric and Transitive 2. Symmetric, Transitive In HW1, consider the code: Video Obj o = new Video Obj("a", 1900, "b"); Record r = new Record("a", 1900, "b"); Record s = r.copy(); Then r.equals(s) is true. 3. NO 4. YES 5. DEPENDS Choose TRUE/FALSE 6. TRUE if x.hashCode() == y.hashCode(), then x.equals(y) is always true. 7. FALSE Choose YES/NO/DEPENDS 8. Video Obj 9. Record The immutable class in HW1 10. Inventory Set Equals method should always be: 11. Reflexive and Symmetric 00 12. Coherent comparesTo must always yield a relation that is: if x.compareTo(y) ==0, then x.equals(y) is always true. Choose YES/NO/DEPENDS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!