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 the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
How do you convert an int to a double in java?
What are white spaces in java?
What comes to mind when someone mentions a shallow copy in java?
How do you sort a string in alphabetical order in java?
What are abstract classes and anonymous classes?
What is the difference between a factory and abstract factory pattern?
Write a program to show whether a graph is a tree or not using adjacency matrix.
Which class contains a method: cloneable or object?
What are the restrictions that are applied to the java static methods?
Explain the available thread states in a high-level?
What is the purpose of the system class in java?
What is the difference between error and an exception?
How does indexof work?
What are the advantages and disadvantages of reference counting in garbage collection?