


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The key differences between the string and stringbuffer classes in java. It covers their immutability, methods for modification, and syntax for initialization and concatenation. The document also introduces the stringbuffer constructors and exceptions. Students are encouraged to identify issues in sample code and correct them using try/catch blocks.
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Announcements: Practice exam next week. Read 12.5.2, 12.5.3. Last Time: String and StringBuffer What are some major differences between the String and StringBuffer classes?
Let's look at the logic error category in more detail. What kinds of errors did we just see? These are called runtime errors. The program terminates because something goes wrong. There is another type of logic error โ the program doesn't throw an exception, but it produces the wrong result. What distinctions can you see between the runtime errors we just saw?
Lab 29 Create a new project. Create a new class named DaysPerMonth. This class has one public method: public void displayMonth() This method should call the following two private methods to: