www.evidhyashala.com provides free free mock test , free online exam , online exam free test series , online exam free , Online Test Exam Series , free exam papers past papers , online exam form ,Online Test Series for Exam Prep. Free Mock Tests - for All govt jobs. Bank PO, Clerk, SSC CGL, CHSL, JE, GATE, Insurance, Railways, IBPS RRB, SBI, RBI, IPPB, BSNL TTA

Sponser Link

know more info pls click here

Will the following code block compile?-interview04032012

try { throw new System.IO.FileNotFoundException(); } catch (Exception E) { Response.Write(E.Message); } catch (System.IO.FileNotFoundException FNFE) { Response.Write(FNFE.Message); } No, a compile time error A previous catch clause already catches all exceptions of this or of a super type ('System.Exception'). Catch blocks are evaluated in the order in which they appear in code. The exception declaration of each catch block determines which type of exception the catch block handles. Always order catch blocks from most specific to most general. So, in the preceding sample, FileNotFoundException should be placed before the general Exception catch block.

0 comments:

Popular Posts