This document provides notes on Strings and StringBuffers in Java. It discusses:
- The String and StringBuffer classes, their key differences, and common constructors for each.
- Common String methods like length(), charAt(), equals(), compareTo(), and toUpperCase().
- How to extract, compare, modify and check substrings within a String.
- Common StringBuffer methods like append(), insert(), delete(), and replace() that allow mutable string operations.
- The Java util Date class and Random number generator, with examples of constructing and using each.
It then covers exceptions in Java, including checked vs unchecked exceptions, syntax for try/catch blocks, and using multiple