What is static variable and static method?
Answer Posted / jai
One Copy of Static variable will be shared by multiple
instances.Static method can be called by the Class itself
without creating any instance where as the non static
methods cannot be called without the help of instances.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What are constructors in java?
How can you write a loop indefinitely in java programming?
How do you add an arraylist to an array in java?
What are locale settings?
What is an example of a conditional statement?
What is super keyword explain with example?
What is arraylist e?
How many types of operators are there?
What are voids?
Is integer passed by reference in java?
Why java doesn’t support multiple inheritances?
What is the difference between heap and stack memory?
What is toarray method in java?
What is java in simple terms?