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 applet and application?
Why does java have different data types for integers and floating-point values?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Explain working of call by reference function invoking.
Is an integer an object?
What is meant by singleton class?
How do you clear an arraylist in java?
define polymorphism in java
What is the independent variable in an experiment?
If you are given the name of the function at run time how will you invoke the function?
What is singleton pattern?
Is 9 a prime number?
How many bits is a 64 bit byte?
What is string english?
What is a return in java?