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
how many types of Inheritance?
How many bytes is double?
What string is utf8?
What is a numeric format?
What are the advantages of compiled language?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
What is java basic concept?
What is a java list?
What is flag in python?
What is an exception? difference between Checked and Unchecked exception in Java
Are constructors methods?
What is the use of private static?
Difference between string, string builder, and string buffer?
Why do you canvas?
Differece between class and generic class?