Buy Questpond's video subscriptions on
huge discount
.
Online: 1020
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
>
.NET Framework
>
Loading ...
What will be the output of this program?
using System;
class Class2
{
Class2()
{
static int i;
i++;
Console.WriteLine(i);
}
static void Main()
{
Class2 a = new Class2();
Class2 b = new Class2();
}
}
Posted by
Ddd
on 1/17/2011 | Category:
.NET Framework Interview questions
| Views: 4864 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
Compiler error "Modifier static is not valid for this item"
static variables are declared at Class level.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
Can classes be marked as protected or private ?
Next > :
Which of these controls is supported for paginatio ...
Comments or Responses
Login to post response
More Interview Questions by Ddd
Which of these controls is supported for pagination by DataPager ?
Which object you would use for displaying the running text in the Stat ...
Which mode should be used to maintain session state even if the Web S ...
Which of these is the fastest way of returning the total number of sa ...
Which class defines the methods for implementing drawings, shapes, w ...
What is the difference between Eval and Bind methods?
Which of these is a valid declaration in a skin file ?
Which of the following is an event in WPF ?
Latest Interview Questions
Which DLL is used to translate XML to SQL in Internet Information Serv ...
What type of Architecture is a Dataset in .Net Framework
From which Interface the sqlconnetion class is derived
How to change the CssClass of a server control without writing any co ...
How the indexing is getting worked?
What is Process Identifier?
What is Data Source Control with example?
What is JSON?
More ...