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
Explain try and catch keywords in java?
What do you mean by formatting?
Why main() method is public, static and void in java ?
What is the use of callablestatement?
What is this keyword in java?
How can we use primitive data types as objects?
is there a separate stack for each thread in java? : Java thread
How to sort list of list in java?
What is the implementation of destroy method in java. Is it native or java code?
Can we declare a class as abstract without having any abstract method?
What is implicit object in java?
Is it possible to use string in the switch case?
What is method overloading with type promotion?
Is empty string in java?
What is module with example?