adspace
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
Is minecraft 1.15 out?
What is the difference between break and continue statements?
Explain public static void main(string args[]) in java.
explain different ways of using thread? : Java thread
Write a program to print count of empty strings in java 8?
What is a constructor overloading in java?
Write a program to find the whether a number is an Armstrong number or not?
What is an object in java and how is it created?
What are the differences between heap and stack memory in java?
How to create a base64 decoder in java8?
How to sort array in descending order in java?
Differentiate between static and non-static methods in java.
What is the difference between equals() and == in java?
What is java string pool?
What do you mean by an interface in java?