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 |
Define "Access specifiers" in java.
What do you mean by singleton class in java?
Explain about main thread in java?
Is arraylist an object in java?
Is java still relevant?
What is the use of arrays tostring () in java?
Why collection is called framework in java?
What is the difference between hashmap and hashtable? What is an interface?
What is the difference between the >> and >>> operators?
i don't want fullforms of JDK an JVM i want definitions for them
How will you compute size of a structure?
What happens when heap memory is full?