100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
ITSC 1213 Final Exam With Complete Solutions!! $9.99   Add to cart

Exam (elaborations)

ITSC 1213 Final Exam With Complete Solutions!!

 150 views  1 purchase
  • Course
  • ITSC
  • Institution
  • ITSC

ITSC 1213 Final Exam With Complete Solutions!!

Preview 1 out of 3  pages

  • December 4, 2022
  • 3
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
  • ITSC
  • ITSC
avatar-seller
EvaTee
ITSC 1213 Final Exam With Complete
Solutions!!
What is the call stack? - Answer Ordered list of methods that were called to get to
the method where the error occurred.

What class identifies the kind of error that occurred? - Answer The exception class

Can you implement your own exception classes by extending the Exception class? -
Answer Yes

An exception object gets created when an exceptional event occurred that disrupted
the normal flow of the application. What is this called and why. - Answer This is
called to throw an exception because in java you use the keyword "throw" to hand
the exception to the runtime.

What specifically happens when a method throws an exception object? - Answer The
runtime searches the call stack for a piece of code that handles it.

True or False: Java supports checked and unchecked exceptions? - Answer True

When should you use checked exceptions? - Answer For all exceptions that you can
anticipate and that a well written application should be able to handle.

What class does a checked exception extend? - Answer The exception class

A method that throws a checked exception or that calls a method that specifies a
checked exception needs to do what? - Answer Either specify or handle it

Unchecked exceptions extend what? - Answer RuntimeException

When should you use unchecked exceptions? - Answer For internal errors that you
can't anticipate and that the application cant recover from.

True or False: methods can but don't need to handle or specify an unchecked
exception? - Answer True

Common examples of unchecked exceptions: - Answer NullPointerException
IllegalArgumentException

Try-Catch-Finally block handles java exceptions. What does each block do? -
Answer Try block encloses the code section which might throw an exception

One or more catch blocks handle the exception

A finally block gets executed after the try block was successfully executed or a
thrown exception was handled.

In a Try Catch Finally block, which one is required? - Answer The try block and it can
be used with out the catch or finally blocks.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller EvaTee. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

82215 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.99  1x  sold
  • (0)
  Add to cart