What is static variable and static method?
Answer Posted / digant mehta
tatic variables are classes variables not instance
variables .They are instantianted only once for a
class.They are initialised at class load time.
Static method can be referenced with the name of the name
of the particular object of that class. That's how the
library methods like System.out.println works.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a class be declared as protected?
What is re-factoring in software?
Define how objects are stored in java?
What is java developer skills?
What is variable and rules of variable?
Give any two differences between C++ and java.
Can we execute a program without main() method?
why an outer class cannot be declared as private?
What are the advantages of assembly language?
What is package protected in java?
What is the difference between abstract class and interface1? What is an interface?
What is difference between filereader and bufferedreader?
What is difference between static and abstract class?
What are the files generated after using IDL to java compiler?
What is rule of accessibility in java?