• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Java 8 OCA Exceptions objectives

Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am preparing for the 1Z0-808 exam using the oraclestudy exam test-questions. In these questions i found a question about InternalError, OutOfMemoryError, StackOverflowError and UnknownError classes. To learn Java i used the Sybex book (written by J Boyarsky and S Selikoff) and i thought that only the StackOverflowError is covered in this book. Does anyone know if is have to know the details about InternalError, OutOfMemoryError and UnknownError for the exam?

Best regards,
Posts: 114
Spring Tomcat Server Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I checked the specifications for the 1Z0-808 exam and it does not explicitly list the exceptions that you should know. It just says you must know common exceptions. Which is not very helpful.

However, my reading of this is that you should know the exceptions that you have met while studying for the exam. These are likely to be the exceptions thrown by the String class, the Number classes and subclasses and so on. what you should know about these class is for the exam is limited to whether or not they are checked or unchecked.

To some extents, you should be able to deduce that an exception is a checked exception or an unchecked exception from the name given to the exception class. For example, an exception that ends in the word Error probably extends from the Error class and therefore will be an unchecked exception, which means it does not need to be thrown/caught. Be careful, because the reverse is not true, that exception class names that end in Exception are may be either checked or unchecked exceptions.
author & internet detective
Posts: 40035
Eclipse IDE VI Editor Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never heard of InternalError or UnknownError. They definitely aren't common errors and you definitely don't need to know anything more than the fact that they are errors (vs exceptions).

OutOfMemoryError is pretty obvious what it is from the name - the JVM ran out of memory.
Posts: 69843
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked for those excceptions and found 1 and 2. You are correct in your guess that both are subtypes of Error. The links tell you a bit about them, but I don't remember ever seeing either. I would take it for granted that the examinees are familiar with the following sorts of exception, too:- RuntimeException, ArithmeticException, ClassCastException, IllegalArgumentException, IndexOutOfBoundsException and its subtypes, NoSuchElementException and its subtypes and NullPointerException as a minimum simply because they occur so frequently.
Paper jam tastes about as you would expect. Try some on this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic