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 |
What is the purpose of javac exe?
What is the list interface in java programming?
How to provide security in java
0 Answers Infosys, TCS, Tech Mahindra,
When try and catch block is used ?
How are Observer and Observable used?
How do you calculate square roots?
Explain access modifiers in java.
Difference between Web-based applications,Client- Server applications and Distributed applications?
What is class??
Which package has light weight components in java programming?
Can we have two main methods in a java class?
What is dot operator?