How do you use, call, and access a static method in Java?
Answer Posted / nashiinformaticssolutions
• The static keyword needs to appear before the method name.
• Use the class (className.methodName) to invoke a static method.
• No non-static instance variables or methods can be accessed by static methods.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the characteristics of java?
What is a jit compiler?
Explain working of call by reference function invoking.
What is the basic difference between string and stringbuffer object?
Why do we need data serialization?
What is the major difference between linkedlist and arraylist?
How can the checkbox class be used to create a radio button?
What is the difference between compare and compareto in java?
What is mean by collections in java?
what do you mean by classloader?
What is a boolean structure?
What is the generic class?
Can we overload destructor in java?
Can we access the non-final local variable, inside the local inner class?
How do you take thread dump in java?