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 difference between path and classpath?
What is flag in python?
What is the history of java?
What is bom encoding?
What is the difference between a loader and a compiler?
What is difference between == equals () and compareto () method?
Can the garbage collection be forced by any means?
Can we declare a class as static?
Give me example of derived data types.
What does business logic mean?
What is static block?
What best practices should you follow while writing multithreaded code in java?
Does google use java?
What are the differences between string and stringbuffer?
What is final method?