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


Please Help Members By Posting Answers For Below Questions

What do you mean by garbage collection used in java?

810


What is the difference between preemptive scheduling and time slicing in java programming?

789


How to call one constructor from the other constructor ?

815


What is meant by overloading?

813


What is the protected method modifier?

787


How do you use parseint in java?

723


When arithmeticexception is thrown?

806


what is a working thread? : Java thread

804


Is string a class?

751


What are advantages of using Java?s layout managers than windowing systems?

2090


Which are different kinds of source code?

883


Can constructor be synchronized?

745


Why method overriding is used?

774


What is anonymous inner class?

821


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

864