Question subject: Interface Collection and Class Collection
Posted: Wed Mar 25, 2009 8:52 am
Joined: Thu Mar 19, 2009 3:28 pm Posts: 6 Has thanked: 0 time Have thanks: 0 time
What is the different between Interface Collection and Class Collection ?
Thanks for those people help me to answer
msi_333
Question subject: Re: Interface Collection and Class Collection
Posted: Sat Aug 08, 2009 8:02 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2103 Location: Earth Has thanked: 39 time Have thanks: 57 time
There is a class called Collections no Collection .Collections can carry different types of Collection which is the generic java interface . (Like arrayList ,List ,Tree ) .
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
Jayne Carreen
Question subject: Re: Interface Collection and Class Collection
Posted: Mon Aug 10, 2009 9:04 am
Joined: Mon Jul 27, 2009 7:14 am Posts: 13 Has thanked: 0 time Have thanks: 0 time
An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.