Class Notes (1,035,963)
CA (593,746)
Trent (3,419)
COIS (157)
Lecture 10

COIS 2240H Lecture Notes - Lecture 10: JavafxPremium

2 pages105 viewsWinter 2018

Computing & Information Systems
Course Code
COIS 2240H
Alaadin Addas

This preview shows half of the first page. to view the full 2 pages of the document.
WEEK 10 session 2 lec notes
COIS 2240
Thursday, March 15, 2018
Recap- JavaFX
How do we handple events in java?
A JavaFX application must have a start method, what does this start method have to extend
A handler class must implement the EventHandler interface, what is the method that you have to
override in order to implement that interface
Java Exceptions
Before we delve into I/O (input/outpit) we nee dto talk about exceptions
That is due to the fact the many different I/O calls require use to have exceptions handled
We handle I/O exceptions because we need to know if the file is there
- any error in opening a file or closing a file for example needs to be handled gracefully. That is
why exceptions and I/O go hand in hand
- If there is an error pertaining opening.
Handling Errors
Three are two main approaches to handlediing eroors when programming
LBYL- Look before you leap
find more resources at
find more resources at
You're Reading a Preview

Unlock to view full version

Subscribers Only

Loved by over 2.2 million students

Over 90% improved by at least one letter grade.