What is static variable and static method?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ravikiran(aptech mumbai)
static variable is a class variable which value remains
constant for the entire class
static method is the one which can be called with the class
itself and can hold only the staic variables
| Is This Answer Correct ? | 43 Yes | 63 No |
what are the different access specifiers that can be used by interfaces and abstract classes? can anyone give me detailed description on this
11 Answers IBM, L&T,
What is void data type?
I have 2 objects inside one object(vector). how can i serialize one of them. I dont want to serialize the second one
What is Garbage Collection in Java
How to pass arraylist to stored procedure in java?
Convert Binary tree to linked list.
What is the difference between scrollbar and scrollpane?
Are arrays passed by reference in java?
Explain about main thread in java?
Can singleton class be inherited in java?
Define reflection.
What is a text string?