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 the use of accept () method in java?
Can arraylist hold different types java?
What does g mean in regex?
What is the difference between equals() and == in java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is the gregoriancalendar class in java programming?
What is the method overriding?
Can you declare an interface method static?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
How can we create an immutable class in java?
What is java util hashmap?
Are primitives objects?
What is the use of using enum to declare a constant?
What is collection api?
Give an example of use of pointers in java class.