Will the snippet of code compile?
 
try 
{ 
       FileStream F = newFileStream("myfile.txt"); 
       string s = F.ReadLine(); 
} 
catch (IOException) { }
 finally 
{ 
     F.Close(); 
}
 
Explanation
A compiler will show an error because variable F is not defined in the place of call F.Close()
C#
C# Quiz
Learn C# Online

or Read more about C# Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback