what is static?

Answers were Sorted based on User's Feedback



what is static?..

Answer / arul

static means retain the value in operation

Is This Answer Correct ?    8 Yes 2 No

what is static?..

Answer / azaad

static is keyword which is used for a variable and also for
a method.
static variable is initialized only once (i.e)one time memory.
static method of a class should not called with an objecy it
should be called with class name...
syntax: class-name.static method()

Is This Answer Correct ?    3 Yes 0 No

what is static?..

Answer / suresh reddy

1. Static limits the scope of an object(variable) or a
function to the file in which it being compiled.
2. A static variable retains its value between function
calls, even though its a local variable.
3. Lifetime of a static variable is the entire program.
4. We can't use extern keyword for a static object.

Is This Answer Correct ?    4 Yes 2 No

what is static?..

Answer / tanaji

if we use static method ,first static method will execute then other.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is a macro? And how is a macro same as a template?

4 Answers  


What are the three parts of a simple empty class?

0 Answers  


WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE

2 Answers  


What is polymorphism? Explain with an example.

48 Answers  


what is virtual destructor

7 Answers   L&T, TCS,






how to find no of instances of an object in .NET?

1 Answers   Infosys,


What is polymorphism ? Explain with examples

8 Answers   Ness Technologies,


Can we have a private constructor ?

12 Answers   HSBC, Ness Technologies, TCS, Wipro,


what are the different types of qualifier in java?

0 Answers   TCS,


What is polymorphism used for?

0 Answers  


what is SPL in c++.

1 Answers  


What do you mean by pure virtual functions?

8 Answers  


Categories