Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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!!
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started