Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handle or Handler

 
Salim Mohamed
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have many times come across the word handle or handler while studying java programming book. How can I better understand what handle or handler means ? Thanks in advance.
 
david eberhardt
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Salim Mohamed:
I have many times come across the word handle or handler while studying java programming book. How can I better understand what handle or handler means ? Thanks in advance.

Hi Salim;
both words usually refer to "Exception Handling" and so I would suggest you study about Exceptions which is Section 2 of the Java Certification Objectives.
let me give you an example of a "handler":

The words "handle" and "handler" are not Java Keywords or Reserved words. These words are adjectives used to describe what we do with "exceptions" when they happen with the try-catch-finally code blocks.
The catch block is used to "handle" (verb -meaning do something with) an exception. We say that a catch block is a "handler" (noun).
Hope this helps!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic