Week 9 - live Java - Exceptions and file reading / writing

This week we’ll be looking at exceptions. We’ll learn what checked and unchecked exceptions are, how to create custom exceptions and how to handle exceptions. After that we’ll look at reading and writing files.
Topics
- Exceptions
- Reading and writing files
Content
- Exceptions
www.w3schools.com/java/java_t...
www.geeksforgeeks.org/excepti...
www.geeksforgeeks.org/types-o...
- Reading and writing files
www.geeksforgeeks.org/file-ha...
attacomsian.com/blog/java-rea...
Questions
If you have any questions about the content, please write them under the corresponding KZread video. The questions that are asked most will be discussed in the Saturday session. You can also ask your direct team members and the other participants. Please help each other as much as possible, if you see a question you know the answer too, please answer 😊 We’re doing this together!
Homework
- Instead of writing the things happening in your tournament to the screen, write them to a file!
- Catch exceptions the correct way
- Create your own checked exception that gets thrown when the game is starting without a ball
- Catch this exception in the place where you are starting games

Пікірлер