difference between static and non-static variables?
Answers were Sorted based on User's Feedback
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.
Non-static:
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 |
Answer / sujitha.r
Static:
*No instance is required.
*Automatic Invocation.
Non-Static:
*Instance is required.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the significance of classes in oop?
What is difference between multiple inheritance and multilevel inheritance?
what is the difference b/w abstract and interface?
2 Answers Merrill Lynch, Schneider, Scio Healthcare,
Which method cannot be overridden?
Contrast OOP and SOA. What are tenets of each?
1 Answers Siebel Systems, Wipro,
which feature are not hold visual basic of oop?
What is object-oriented programming? Webopedia definition
Why static Function is used in C++?
What is nutshell in programming language?
1 Answers Satyam, Tech Mahindra,
what's the basic's in dot net
Program to check whether a word is the first word of the sentence.
What is the real time example of encapsulation?