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
Can a class have an interface?
How do you represent a space in regex java?
What are the differences between this and super keyword?
What is the symbol for space?
What is lambda in java?
Why hashset is used in java?
How are the elements of a gridbaglayout organized?
Give me some null interfaces in java?
What are the main features of java?
Give us a program to check for parenthesis matching using stack.
Explain about assignment statement?
What do you understand by a Static Variable?
Is main a function?
What is string array?
What is the static method?