How do you use, call, and access a static method in Java?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / glibwaresoftsolutions
• 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 |
What is float in java?
what is custom tags with example?
What is the use of object and class classes?
Is singleton class immutable?
What does null mean in java?
What is abstract class constructor called?
Explain a situation where finally block will not be executed?
How can u increase the heap size in the memory?
What is CardLayout?
what is collatration?
What is the technique adopted to create an immutable class?
According to java operator precedence, which operator is considered to be with highest precedence?