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
Can you change array size in java?
What is the list interface in java programming?
how to write a program for sending mails between client and server
Give example to differentiate between call by value and call by reference.
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
Is arraylist ordered in java?
Does constructor return any value?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
When do you call copy constructor?
Are arrays immutable in java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What do you mean Abstraction in java?
What do you know about the garbate collector?
What string is utf8?
What is the primary benefit of encapsulation?