What is static variable and static method?
Answer Posted / pankaj
just im telling about
-> what is static method in java
Ans ->static method represent class behaviour and instance variable represent object behaviour ..but instance of a class is not require for the invokation of static varibale.
-> static data member of the class can be referd in a static block or methd.
-> static block and static method can directly invoked the static method ,nonstatic method can not directly by static method or static block.
->this and supper keyword can not be use in static block and method
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is temp in java?
Can we create constructor in abstract class ?
What is a method declaration?
What are the differences between path and classpath variables?
What is the basic concepts of OOPS?
What are the steps involved to write rmi based programs?
What is the purpose of the enableevents() method?
Will the jvm load the package twice at runtime?
What is dynamic binding(late binding)?
What is difference between static class and normal class?
What is the base class of all exception classes?
What are methods in java?
Where local and global variables are stored?
What does method mean?
Is it possible to override the main method?