How do you use, call, and access a non-static method in Java?
Answer Posted / glibwaresoftsolutions
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
What is blank final variable?
How to change the priority of thread or how to set the priority of thread?
What are loops in java?
Explain wait(), notify() and notifyall() methods of object class ?
How does varargs work in java?
Is empty string in java?
What are the three types of design patterns?
What are features of java?
What is an anonymous class in java?
How can you share data between two thread in Java?
What is a map? What are the implementations of map?
What is the method to expand and collapse nodes in a jtree?
Is main an identifier?
Give the hierarchy of inputstream and outputstream classes.
What is purpose of keyword void?