Which block should be placed after try block?

Hưng Thịnh

New member
Which block should be placed after try block?
A. catch
B. throw
C. either catch or throw
D. handler
 
Answer: a
Explanation: Syntax of try catch block:
Code:
try{
    // do something
}
catch{
   // catch respective error.
}
finally{
   // do something after trying or catching error i.e. run this block in both cases.
}
 

Tìm kiếm

Back
Top