How do you use, call, and access a static method in Java?
Answer Posted / 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 |
Post New Answer View All Answers
When the constructor of a class is invoked?
What are jee technologies?
What are locale settings?
Why java is called not pure object oriented language?
What is the purpose of sizeof operator?
what is the difference between thread and runnable types? : Java thread
What is the loop in java?
how to prepare for IT Officers Interview in Banks
Can arraylist contain null values?
What are the steps that are followed when two computers connect through tcp?
How do you compare two strings lexicographically?
Differentiate between vector and array list.
What data type is true or false?
Explain the difference between transient and volatile in java?
who can i handle multiple client in RMI