- 1. Always override
hashCode
when you overrideequals
- 2. Java Arrays
- 3. Java String
- 4. Common data structure
- 5. UML
- 6. Primitive type & Reference type
- 7. Terminate a function VS Terminate the program
- Why do you have to override the equals and hashCode methods in Java?
- Further details available at Page 50 of the book Effective Java Third Edition, by Joshua Bloch
- Visualization of arrays
- Difference between array and enum
- Array, ArrayList, LinkedList and Vector [1][2][3][4]
- Difference between
String s = "hello";
VSString s = new String("hello");
- Immutability of Strings in Java
- String, StringBuffer, and StringBuilder
- Benefits of Immutable Data Structure
- Common Data Structure Operations and Complexity
- Java Collections Cheat Sheet [1] [2]
- An introduction to the Unified Modeling Language
- The class diagram
- The component diagram
- The sequence diagram
- Difference between primitive and reference
- Is Java “pass-by-reference” or “pass-by-value”?
return;
statement is used inside a method to come out of it. It returns from the function to its caller and the program continues running.System.exit();
terminates the program; control does not return to the caller.- System.exit(0) is used in any method to come out of program. System.exit(0) terminates the program normally.
- Whereas System.exit(1) terminates the program because of some error encountered in the program.
The reading list is collected by Chuang Wang, tutor for COMP90041 Semester2 2019
Chuang Wang LinkedIn:https://www.linkedin.com/in/chuangw
Feedbacks and comments are more than welcome!
Please contact the author: [email protected]
Thanks a lot!
MIT