Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is difference between colection and collections?

Answer Posted / devraj

Collection is an root interface for collection framework and
implemented by collection classes like List,Set ...etc
Whereas Collections is class which contains static methods
to operate on collection classess
EX:
List l=New ArrayList();
l.add("dev");
l.add("raj");
l.add("dev");
l.add("raj");
l.add("dev");
l.add("raj");
now i want to know no of dev in List
like fallowing
System.out.println(Collections.frequency(l,"dev"));

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of classes are there in java?

1116


What are java threads?

1174


What is meant by call by reference?

1088


how to create multithreaded program? Explain different ways of using thread? : Java thread

1054


Can the interface be final?

1065


What is a boolean expression in java?

1077


What is thread life cycle?

1030


What is method overloading and method overriding?

1110


How is hashcode calculated in java?

1088


What is the use of isempty in java?

1081


What does jenkins do?

971


How can we make sure main() is the last thread to finish in java program?

1256


What methodology can be utilized to link to a database?

1016


What do you mean by inner class in java?

1148


How do you compare two objects?

993