When will you define a method as static?
Answer / Anant Kumar
A method is declared as static when it belongs to the class rather than an instance of the class. Static methods can only access other static members of the same class.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the importance of finally block in exception handling?
What is methodological theory?
What is the purpose of a statement block?
What is mysql driver class name?
How do you detect memory leaks?
Which collection is ordered in java?
Why string is not thread safe?
How do you create a method in java?
Give a brief description of java socket programming?
Is null a string or object in java?
What is dynamic binding(late binding)?
Can a abstract class be declared final?