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 jvm? Why is java called the platform independent programming language?
Can we sort list in java?
How do you convert an int to a double in java?
What are computer functions?
What all access modifiers are allowed for top class ?
What is the function of compareto in java?
Are arrays classes in java?
Differentiate between overriding and overloading cases?
Is vector thread safe in java?
How does sublist works in java?
What is float in java?
What is string intern in java?
What is the difference between JDBC 1.0 and JDBC 2.0?
Why null value is used in string?
What does yield method of the thread class do?