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 |
How do I write a self declaration?
what is difference between validation.xml & validation rules.xml?
Does hashset allow duplicates in java?
What are dot operator queries?
class a extends b { } class b extends a { } why java doesn't support cyclic pls explain me with example
What is qms certification?
what is filters and its use?
What is public/private protected in java?
what is Thread?
explain about jre and jvm
What are different access specifiers in java? Explain
C and C++ has constructors and distructors, why does Java does not have distructors?