How do you use, call, and access a non-static method in Java?
Answer Posted / nashiinformaticssolutions
• The static keyword does not have to appear before the method name.
Like any generic method, call a non-static method.
• Any static variable or method can be accessed by non-static methods without requiring the creation of a class instance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between transient and volatile in java?
What are the main differences between notify and notifyAll in Java?
Is arraylist zero based?
What is a default constructor and also define copy contrucyor?
What is difference between null and void?
Explain enumeration in java?
Explain about exception propagation?
What are identifiers in java?
What causes memory leaks in java?
What are checked exceptions?
Can size_t be negative?
What is main in java?
Does java support multiple inheritance or not?
What is the meaning of I ++ in java?
What is the difference between and ?