• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

again wrappers

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1)vector is collection class or interface,
2)Object v = new Vector();
System.out.print((v instanceof Collections)+",");
System.out.print(v instanceof List);
System.out.println(v instanceof collection);
false true true.
all i want to know is collection interface or collections interface?
plssss..
help me?
thx
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out the API -->
Collection interface -- super interface of all collections (i.e. list, set, sorted set)
Collections class -- full of static methods that can be used on different types of collection objects.

Thomas Paul wrote up a very nice series of articles on the different collection classes. Check them out if you have any further questions, it might help explain things better for you.
1- List Interface
2- Set Interface
3- Map Interface
4- Collections Class
 
reply
    Bookmark Topic Watch Topic
  • New Topic