Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

difference between static and non-static variables?

Answers were Sorted based on User's Feedback

difference between static and non-static variables?..

Answer / santosh mundhe

Static:1)Memory allocated before creation of object.
2)Gets memory on Global segment.
3)Object can't get copy of static variable, each
object shears static variable from global segment.
4)Static variables are not part ob object.

1)Gets memory on satck segment.
2)Object gets copy of non static variable.
3)Non static variables are part of object.

Is This Answer Correct ?    4 Yes 0 No

difference between static and non-static variables?..

Answer / sujitha.r

*No instance is required.
*Automatic Invocation.

*Instance is required.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

difference between overloading and overridding

11 Answers  

write a program which best describes polymorphism in real world?

2 Answers   CTS, Infosys, NexGen,

Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.

13 Answers   Wipro,

what is diff between .net 1.1 and .net 2.0

4 Answers  

What is the important feature of inheritance?

0 Answers   BPL,

Why u change company?

12 Answers   BOB Technologies,

What is polymorphism oop?

0 Answers  

What is object and class in oops?

0 Answers  

What is advantage of inheritance?

0 Answers  


5 Answers  

What is the point of oop?

0 Answers  

In c++ there is only virtual destructors, no constructors. Why?

4 Answers   IBM, Polaris,