What is difference between static method and static
variable?
Answer Posted / archana
if we declare a variable as static then it has only one copy
for all classes. if a method is declared as static without
using object we can call it.
| Is This Answer Correct ? | 11 Yes | 9 No |
Post New Answer View All Answers
What is the difference between class & structure?
What is prefix of a string?
How would you dynamically allocate memory to an array?
What is deserialization?
What is jdbc api?
Can we use synchronized block for primitives?
Explain the difference between runnable and callable interface in java?
Does treeset allow null in java?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What is preparedstatement in java?
what are synchronized methods and synchronized statements? : Java thread
Explain about transient variables in java?
Tell some latest versions in JAVA related areas?
What is a lightweight component?
What is the purpose of extern variable?