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 stored procedure. How do you create stored procedure ?
What is difference between protected and private?
What is an off by one error in java?
List primitive java types?
Can we declare a class as abstract without having any abstract method?
Explain when classnotfoundexception will be raised ?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What are the three best choices for a development environment?
How are the elements of a gridbaglayout organized?
What is the symbol for line break?
What best practices should you follow while writing multithreaded code in java?
What is final int?
What is merge sort in java?
How can you handle java exceptions?
Why you should not use singleton?