English
Summary
Conclusions
Methods separate a contract from its implementation, arrays group data of the same type, and string APIs let you explicitly choose literal, Unicode, or pattern-based processing. Correctness depends on boundaries, empty sets, copying, and indexing units.
Self-check questions
- What is copied when an array is passed?
- Can a method be overloaded by return type alone?
- How does varargs behave without arguments?
- What two conditions does recursion require?
- How does an empty array differ from null?
- What precondition does binarySearch have?
- Why are two strings not compared using reference equality?
- How does codePoints differ from chars?
- When is StringBuilder needed?
- Why does formatted not replace HTML escaping?