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
Can we synchronize static methods in java?
What is basic syntax?
What is the difference between stringbuffer and stringbuilder class?
What is java Applet?
Write a java program to check if a number is prime or not?
What are unchecked exceptions in java?
What is a newline character in java?
What is functional interface in java?
How many ways can we create the string object?
What does sprintf mean?
How to read and write image from a file ?
what do you understand by synchronization? : Java thread
Mention the default values of all the elements of an array defined as an instance variable.
What is a stack class in java ?
How can we pass argument to a function by reference instead of pass by value?