Is it just like java?
Similiar, except that there is no finally block. You might write:
Code:
try {
    int *pointer = functionThatUseNew();
} catch (const std::bad_alloc& e) {
    // ...
}