Home » Certification » Microsoft Certification

You develop a Windows-based application that enables to enter product sales. You add a subroutine named XYZ. You discover that XYZ sometimes raises an IOException during execution. To address this problem you create two additional subroutines named LogError and CleanUp. These subroutines are governed by the following rules: • LogError must be called only when XYZ raises an exception. • CleanUp must be called whenever XYZ is complete. You must ensure that your application adheres to these rules. Which code segment should you use?

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!