h1

Collections in Java

January 17th, 2006

Although I have been using the Collections arrays in Java for quite some time, I am reminded every time I use them of the cumbersome nature of primitive arrays that I first learned when I started programming. Not only do the Collections make arrays much easier to work with, they also perform much better than primitive arrays. Most significantly, the Collections arrays use dynamic sizing to conserve memory. This feature is very necessary when writing programs that are meant to be used in diverse situations. Also, the ArrayList provided in Java has the very useful feature of holding items that are of the Object class, which serves as the parent class to every class created in the Java language. With this generic storage facility you can easily “throw” anything you want into an ArrayList for easy storage and retrieval.

Another thing that I really like about Java is how easy it is to create advanced GUI. I never really tired to make GUI programs with C++, but everyone I talked to has said that it is rather difficult. For me, making a GUI in Java is very similar to constructing a web page, which comes very natural to me.

(This is Post #1 for my Advanced Java class)

One comment to “Collections in Java”

  1. This is just a test of the comment system. I recently removed the requirement that you must be registered in order to leave comments, so feel free to speak your mind!


Leave a Comment