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

What does g mean in regex?

937


Why spring singleton is not thread safe?

959


Is boolean a wrapper class in java?

1002


Is null or empty java?

930


How to restrict a member of a class from inheriting by its sub classes?

1287


What is variable and rules of variable?

969


Why does java not support operator overloading?

1085


Explain heap sort?

1048


What is numeric function?

951


Why we override equals() method?

982


What is ternary operator? Give an example.

1022


What is a ternary operator in java?

943


Can we use catch statement for checked exceptions?

917


When do you call copy constructor?

910


What is the meaning of variables in research?

979