Why can't I declare a static method in an interface?

John Mitchell

Because all methods declared in an interface are (implicitly) also "abstract" methods since, by definition, they do not define the (implementation of) the method.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact