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
can used Protected Class outside Function.?
What is isa relationship?
what is a green thread? : Java thread
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What is the program development process?
What is flush buffer?
Describe what happens when an object is created in java ?
What is byte [] in java?
Can you override static methods?
What is difference between an object and a class?
In the below example, how many string objects are created?
How do you compare characters in java?
What is a consumer in java?
What do you mean by synchronized non access modifier?
Is object a data type?