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


Please Help Members By Posting Answers For Below Questions

Explain try and catch keywords in java?

872


What do you mean by formatting?

742


Why main() method is public, static and void in java ?

842


What is the use of callablestatement?

778


What is this keyword in java?

798


How can we use primitive data types as objects?

737


is there a separate stack for each thread in java? : Java thread

778


How to sort list of list in java?

879


What is the implementation of destroy method in java. Is it native or java code?

728


Can we declare a class as abstract without having any abstract method?

770


What is implicit object in java?

810


Is it possible to use string in the switch case?

774


What is method overloading with type promotion?

922


Is empty string in java?

821


What is module with example?

689