Detailed course structure for each branch and semister
Syllabus for each semester subjects
Previous Mid Exam Question Papers
Previous Semesters Final Exam Question Papers
Read all .NET articles
Read all .NET Interview Objective Questions
Read all .NET Interview Questions
You try to execute the following code:
StreamWriter sw = File.CreateText("hello.txt");
catch (IOException ex)
if( sw != null ) sw.Close();
What is the result?
IOException is thrown
File hello.txt is created in the current directory
The code will not compile
StreamWriter variable should be declared outside of the try block.