FlashKeepers

Computer Science · College · College and University

Object-Oriented Programming, Unit 7: Exception Handling and Memory Management

Object-Oriented Programming, unit: Exception Handling and Memory Management. Core concepts, terminology, and worked-example cues a college student meets for this unit, building on prior units without repeating them. Front: a term, concept, or short problem cue. Back: the definition, explanation, or answer.

About this set

38 basic cards for College Computer Science. Set 7 of 7 in Object-Oriented Programming. It opens with "What is exception handling?" and "What is an exception?". Study it alongside the other College sets below.

38 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is exception handling?
Show answerA mechanism for responding to and managing runtime errors in a controlled way
What is an exception?
Show answerAn object representing an error or unexpected event that disrupts normal program flow
What does a 'try' block do?
Show answerContains code that might throw an exception during execution
What does a 'catch' block do?
Show answerHandles a specific type of exception thrown in the corresponding try block
What does a 'finally' block do?
Show answerExecutes cleanup code regardless of whether an exception was thrown or caught
What is throwing an exception?
Show answerSignaling that an error has occurred by creating and raising an exception object
What is a checked exception?
Show answerAn exception that must be explicitly caught or declared, enforced at compile time
What is an unchecked exception?
Show answerAn exception not required to be caught or declared, typically representing programming errors
What is exception propagation?
Show answerAn uncaught exception passing up through calling methods until it is handled or crashes the program
What is a custom exception class used for?
Show answerRepresenting application-specific error conditions with meaningful names and information
What is memory management, in OOP languages?
Show answerThe process of allocating and freeing memory used by objects during a program's execution
What is garbage collection?
Show answerAn automatic process that reclaims memory used by objects no longer referenced by a program
What is a memory leak?
Show answerMemory that is no longer needed but not released, gradually exhausting available resources
What is manual memory management?
Show answerA model where the programmer explicitly allocates and frees memory, as in C
What is a reference count, in some garbage collection schemes?
Show answerA tracked number of references to an object, used to determine when it can be freed

23 more cards in the app

Study this set free