What is static variable and static method?
Answer Posted / kutta
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is static class
When we should use serialization?
What is an anonymous class in java?
what is the purpose of using rmisecuritymanager in rmi?
Mention the default values of all the elements of an array defined as an instance variable.
What are different types of encoding?
How do I run java on windows?
How big is a 32 bit integer?
When should I use stringbuffer?
What is the default value of float and double datatype in java?
What type of variable is gender?
Is a boolean 1 bit?
What are the main differences between notify and notifyAll in Java?
What does business logic mean?
What is the difference between Array and Hash Table?