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 |
Do we have pointers in java?
What is stringbuffer in java?
What is t type java?
What is the difference between serialization and deserialization?
How can i add a button in applet in java ???
What are the different ways of implementing thread? Which one is more advantageous?
Explain the differences between public, private, protected and static?
can java object be locked down for exclusive use by a given thread? : Java thread
What are synchronized blocks in java?
How many methods does cloneable interface contains?
How to access a method that it declared as protected?
what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?