When will you define a method as static?



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

Post New Answer

More Core Java Interview Questions

What is the importance of finally block in exception handling?

1 Answers  


What is methodological theory?

1 Answers  


What is the purpose of a statement block?

1 Answers  


What is mysql driver class name?

1 Answers  


How do you detect memory leaks?

1 Answers  


Which collection is ordered in java?

1 Answers  


Why string is not thread safe?

1 Answers  


How do you create a method in java?

1 Answers  


Give a brief description of java socket programming?

1 Answers  


Is null a string or object in java?

1 Answers  


What is dynamic binding(late binding)?

1 Answers  


Can a abstract class be declared final?

1 Answers  


Categories