What is the difference between static and non-static
variables?
Answer Posted / pravallika
in case of static variables memory can be allocated only at once and these variables can access with help of class name but where as non static variables have memory can be allocated in separate locations.And these variables can access with help of object
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
Are static members inherited to sub classes?
How will you initialize an Applet?
Which package has light weight components?
What is the benefit of inner / nested classes ?
Can a main method be overloaded?
what is bmg file and how to create that files?what will it contailn?
How many bytes is a string?
Is singleton thread safe in java?
Name some OOPS Concepts in Java?
What is the mapping mechanism used by java to identify IDL language?
Explain access specifiers?
Can you give names of Container classes?
how to create multithreaded program? Explain different ways of using thread? : Java thread
What is the use of set in java?