GIAC
GSSP-NET · Question #134
GSSP-NET Question #134: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #134. The question stem and answer options stay visible for context.
Question
Mark works as a Software Developer for Mansoft Inc. He develops an application using Visual Studio .NET 2005. He writes the following code snippet in the application: public class MyClass { public static void Main(String[] args) { try { return; } finally { Console.WriteLine("Finally"); } } } What will happen when Mark attempts to compile and execute the code snippet?
Options
- AThe code snippet will compile successfully and the output will be displayed as "Finally".
- BThe code snippet will compile successfully, but an exception message will be displayed at runtime.
- CA compile-time error will occur because the catch block is not defined.
- DThe code snippet will compile successfully, but nothing will be displayed as output on execu tion.
Unlock GSSP-NET to see the answer
You've previewed enough free GSSP-NET questions. Unlock GSSP-NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.