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 constructor in oop?

0 Answers  


write a program which best describes polymorphism in real world?

2 Answers   CTS, Infosys, NexGen,


Explain the advantages of inheritance.

0 Answers   TCS,


What do you mean by inline function?

6 Answers  


what is difference between c++ language and java language

5 Answers  






what is the advantage in software? what is the difference between the software developer and Engineer

1 Answers  


Can a varargs method be overloaded?

0 Answers  


what uses of c++ language?

3 Answers  


what are the realtime excercises in C++?

0 Answers   IBM, Wipro,


What is DeadlyDiamondDeathProblem ?

1 Answers  


difference between static and non-static variables?

2 Answers  


when my application exe is running nad i don't want to create another exe what should i do

2 Answers   HCL,


Categories