Day-12-Exceptions-Iterator - CSE116 CSE504 Introduction to...

Info icon This preview shows pages 1–8. Sign up to view the full content.

CSE116 / CSE504 Introduction to Computer Science II Dr. Carl Alphonce 343 Davis Hall [email protected] Office hours: Thursday 12:00 PM – 2:00 PM Friday 8:30 AM – 10:30 AM OR request appointment via e-mail
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

PROFESSIONALISM Turn off and put away electronics: cell phones pagers laptops tablets etc. © Dr. Carl Alphonce
Image of page 2
ANNOUNCEMENTS Write-up resources solutions to practice problems and WU problems posted video showing the process of building WU1 solution posted
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Write-Up Grading If your submission scores 100% on automated grading, you receive 100%. If your submission does not score 100% on automated grading, then (i) the automated grade does not count, and (ii) your submission goes for manual grading. In manual grading the outcome will be one of four grades: 100 – a correct solution 70 – submission is on the right track, but is has errors 30 – submission is wrong, but related to problem 0 – no submission, or unrelated to problem
Image of page 4
Last class exceptions Today exceptions completing the iterator Coming up ArrayList and LinkedList ROADMAP
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Catch block ordering: specific to general Catch blocks are tried in the order they are written: try { // code that may throw exception } catch (IndexOutOfBoundsException e) { // code to handle index out of bounds exception } catch (RuntimeException e) { // code to handle runtime exception } catch (Exception e) { // code to handle any other exception }
Image of page 6
Now consider a slightly different part of the hierarchy: Here’s part of the hierarchy: Exception IOException FileNotFoundException MalformedURLException RuntimeException IndexOutOfBoundsException NullPointerException
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern