Method1()
{
int a=0, b=0, c=0;
Monitor.Enter(this)
c = 12;
b = 3;
a = c/b
Moniter.Exit(this)
}
Method1()
{
int a=0, b=0, c=0;
c = 12;
b = 3;
lock(this){
a = c/b
}
}
Choose correct answer.
a. Upon completion, Method1 and Method2 release the lock
b. Upon Comletion, Method1 release the lcok and Method2 not.
c. Upon Completion, Method2 release the lock and Method1
not.
d. Upon Completion, neither Method1 or Method to release
the lock.
class Employee
{
stat9c Method1()
static Method2(ref a)
stat9c Method3(out x)
}
class Employee
{
stat9c Method1()
static Method2(ref a)
stat9c Method3(out x)
}
what will happen & why?
DateTime[] dt = new DateTime[10]
for(i=0; i<10; i++)
{
dt[i] = DateTime(2008, 1, i+1)
}
How many heap object will be created for the above array.
Choose the correct answer below.
Ans: 1, 10, 11, 12
I am trying to implement sorting facility from client side
code in GridView Control.
So how can I fill up an Array inside client side code
(using JavaScript), i want to assign my DataSet object
declared and filled up on Server side(in code behind) to
the array (on client side)
Hello!
How to do this: "Create manifest utility intended for
creating update content files. Application should take a
set of files as input parameter and generate XML based
manifest file as output one." I use C# and vs.net 2003.
It's urgent! Help please, thanks.
Mayana
i develop a web application and i gave security setting i.e
autherization and athentication now it work properly on my
local system ,
now question is ,is this security setting ie
autherization and athentication which i gave in web.config
will it be enough strong to secure my application on
internet or i have to use some 3rd party tool or software
to get security .if yes --how ? if no--what is the
alternate?
103
i have done enough testing in life but now stated
developing intereset in development work,Can i think of
entering into development work that too in >Net after more
then 4 years of testing experiece?
142
destructor, Dispose, Finalize - How they relate to each other