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
Why we use set in java?
Which class is used by server applications to obtain a port and listen for client requests?
Define linked list and its features with signature?
How to sort array in descending order in java?
Why do we override tostring method in java?
What is merge sort in java?
What do you understand by private, protected and public?
What do you mean by ternary operator in java?
What is the difference between the paint() and repaint() methods in java programming?
What is java beans?
What about interrupt() method of thread class ?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
Does .length start 0 java?
How do you remove an object from an arraylist in java?
What is nextint java?