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
What do you mean by garbage collection used in java?
What is the difference between preemptive scheduling and time slicing in java programming?
How to call one constructor from the other constructor ?
What is meant by overloading?
What is the protected method modifier?
How do you use parseint in java?
When arithmeticexception is thrown?
what is a working thread? : Java thread
Is string a class?
What are advantages of using Java?s layout managers than windowing systems?
Which are different kinds of source code?
Can constructor be synchronized?
Why method overriding is used?
What is anonymous inner class?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?