What is static variable and static method?
Answer Posted / aravind
a variable declared inside a method is local to that method.
it can't be accessed outside the method. if a variable
declared in a class means its a global variable.if we
declare a variable with static keyword in a class means it
can be accessed by all the class.
| Is This Answer Correct ? | 18 Yes | 22 No |
Post New Answer View All Answers
What is the size of int in 64-bit jvm?
who can i handle multiple client in RMI
What is the size of arraylist in java?
Give any two differences between C++ and java.
How do you check if a string contains only numeric digits?
What are the classes of java?
What is a lock or purpose of locks in java?
Is null a value?
Is char a method in java?
What is meant by class and object in java?
Why we use methods in java?
What is the size of int?
what methods would you overwrite in java.lang.object class?
Explain about assignment statement?
What are the types of methods in java?