Download
100% FREE
Office Document APIs for .NET
Online: 750
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
ASP.NET
>
Loading ...
See below given code. Will it run?
try
{
Response.Write("In Try block");
}
finally
{
Response.Write("In Finally block.");
}
Posted by
Virendradugar
on 12/30/2009 | Category:
ASP.NET Interview questions
| Views: 3516
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
Yes, it will run.
A try block can exists without a catch block if there is finally block. Try block is only valid when there is either a catch block or finally block.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
Select name of the file to which trace log is writ ...
Next > :
Is it possible to place a try block without a catc ...
Comments or Responses
Login to post response
More Interview Questions by Virendradugar
Is it possible to place a try block without a catch or a finally block ...
Can you access the master page control in content page without FindCon ...
Can you access controls placed in master page in content page?
Is it possible to assign Master Page Dynamically?
At which event Master Page and Content Page's contents are merged to b ...
Can you place content of child page, outside the content place holder ...
Can you place more than one contentplaceholder in a master page?
What do you mean by ContentPlaceHolder in Master Page?
Latest Interview Questions
int? d = 1; Type testType = d.GetType(); will result…
Limitation of boxing nullable type.
How can you make your machine shutdown from your program?
DetailsView and FormView - Which is better?
What is DetailsView?
is there any event "ModeChanged"?
How can you cancel update/cancel of gridview ?
For gridview, data-binding expressions are resolved at,…
More ...