Answer Posted / 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 |
Post New Answer View All Answers
What is encapsulation example?
What is polymorphism programming?
What are the components of marker interface?
Why it is called runtime polymorphism?
What is the importance of oop?
How do you define social class?
What is an interface in oop?
Why is abstraction used?
What is encapsulation in oop?
What is overriding in oops?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is constructor in oop?
What is abstraction in oop with example?
What is oops with example?
write a program to find 2^n+1 ?