Results 1 to 3 of 3
- 12-10-2007, 12:34 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 3
- Rep Power
- 0
- 12-12-2007, 05:48 PM #2
Member
- Join Date
- Dec 2007
- Location
- India
- Posts
- 14
- Rep Power
- 0
methods in interface are abstract by nature which means the class that implements this interface has to write the code for it hence it is not static
- 12-12-2007, 07:57 PM #3
Senior Member
- Join Date
- Nov 2007
- Location
- Newport, WA
- Posts
- 141
- Rep Power
- 0
Why WOULD you want them to be static? You can only have one static method in one place, having an interface, pretty much means that it is DESIGNED to be implemented, therefore, to be used by more than one class. If its overridden, and its static, static would looses its meaning, since more than one class are going to contain a single method, that does different things, but its implemented from the same interface.
What in the world made you think this was an Advanced topic?
Similar Threads
-
Newbie question about Static methods
By SCS17 in forum New To JavaReplies: 9Last Post: 02-06-2008, 08:03 AM -
Static methods - not working
By Echilon in forum New To JavaReplies: 2Last Post: 12-21-2007, 01:31 PM -
Mocking static methods of class
By Kat in forum New To JavaReplies: 3Last Post: 11-08-2007, 12:24 AM -
Static methods
By Java Tip in forum Java TipReplies: 0Last Post: 11-04-2007, 05:56 PM -
significance of static variables and methods
By imran_khan in forum New To JavaReplies: 4Last Post: 08-02-2007, 09:52 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks