JavaTweets

Blog on Java Programming and Interview Questions

Collections Framework


  • Interfaces and Classes of the Collections Framework
  • Collection Interface in Java
  • List Interface in Java
  • ArrayList in Java Collections Framework
  • Which is Faster - LinkedList or ArrayList? or When to use LinkedList over ArrayList?
  • Use of java.util.LinkedList or LinkedList as Stack, Queue and Double-Ended Queue
  • Converting from ArrayList to Array & from Array to ArrayList in Java
  • Iterator Interface in Java Collection Framework
  • ListIterator in Java Collection Framework with Examples
  • Difference between fail-fast Iterator vs fail-safe Iterator in Java
  • Difference between HashSet, LinkedHashSet and TreeSet in java
  • Difference between HashMap, LinkedHashMap and TreeMap in java
  • Use of LinkedHashMap or LRU(Least-Recently-Used) Caches using LinkedHashMap in Java
  • keySet(), entrySet() and values() in Java Map
  • Why override equals() and hashCode() methods of HashMap keys in Java
  • TreeSet in Java with Examples
  • Set operations: union, intersection, difference, symmetric difference, is subset, is superset - using TreeSet in Java




































Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Home
Subscribe to: Posts (Atom)

Total Pageviews

Blog Archive

  • ▼  2012 (254)
    • ▼  August (44)
      • When should I use an interface instead of an abstr...
      • Compare two StringBuffer objects in Java
      • New Java 7 Features: Using String in the Switch St...
      • Comparing String with StringBuilder in Java
      • Comparing String with StringBuffer in Java
      • Difference between == , equals and equalsIgnoreCase
      • Java String to byte Array Example
      • Java Substring Example
      • Java String to Upper Case example
      • Java String to Lower Case example
      • Java String isEmpty Example
      • Java String Reverse Example
      • Java String Trim Example
      • Java String Split Example
      • Java String Replace Example
      • Java String Length Example
      • Determining If a String Contains a Substring in Java
      • Java String Concatenation and Performance
      • Java String Compare using compareTo and compareToI...
      • Java String methods - indexOf() and lastIndexOf()
      • Searching a String for a Character or a Substring ...
      • Java Char Array To String Example
      • Convert String to Character Array Example
      • Copy all the key-value pairs from one Map into ano...
      • Get Tail Map from Java TreeMap example
      • Get Head Map from Java TreeMap example
      • Get Sub Map from Java TreeMap example
      • Get lowest and highest key stored in Java TreeMap ...
      • Get Synchronized Map from Java TreeMap example
      • Remove value from Java TreeMap example
      • Remove all values from Java TreeMap example
      • Get Size of Java TreeMap Example
      • Check if a particular value exists in Java TreeMap...
      • Check if a particular key exists in Java TreeMap e...
      • How to get all keys in Java TreeMap?
      • Get Set view of Keys from Java TreeMap example
      • Iterate through the values of Java TreeMap example
      • Simple Java TreeMap example
      • Checked vs Unchecked Exceptions in Java
      • Creating user defined exceptions in Java
      • Exception Handling : Throws clause in Java
      • Difference between throw and throws in Java?
      • How to Throw Exceptions in Java
      • What is finally block in java?
    • ►  July (134)
    • ►  June (13)
    • ►  May (2)
    • ►  April (10)
    • ►  March (14)
    • ►  February (18)
    • ►  January (19)
  • ►  2011 (3)
    • ►  December (3)

Categories

  • Home
  • SCJP Objective Questions
  • ArrayList Examples
  • Date & Calendar Examples
  • Files and I/O
  • java.util.zip
  • LinkedList Examples
  • Object Cloning
  • Serialization
  • Wrapper classes
  • Collections Framework
  • Multithreading
  • HashSet Examples
  • TreeSet Examples
  • Utility class - Collections
  • HashMap Examples
  • String Examples
  • TreeMap Examples
  • Exception Handling

Search This Blog

Followers

blog status

Popular Posts

  • Remove all elements or clear LinkedList Java example
    This java example shows how to remove all elements or clear Java LinkedList using clear method. import java.util.LinkedList; public cla...
  • Create Zip File From Directory Recursively Using ZipOutputStream in Java
    In this section  , you will learn about how to create a zip file from directory recursively using java.util.zip. ZipOutputStream. Before g...
  • Convert Array to TreeSet in Java
    This Java Example shows how to convert an array to Java TreeSet object using Arrays.asList method. import java.util.Arrays; import java.u...
  • Pitfalls of Autoboxing and Unboxing in Java
    Java 5 and above supports automatic conversion of primitive types (int, float, double etc.) to their object equivalents (Integer, Float, D...
  • Untar a tar.gz file with Apache Commons-Compress in Java
    In this section  , you will learn about how to untar a tar.gz file using apache    commons-compress .   The complete source code is gi...
  • Display Current Time in Different Time Zones in Java
    To display time in a specific time zone we can use the Calendar class. After it has been created we set the time zone on the instance using ...
  • Limitations of externalization
    Serialization is the process of saving an object state in a storage medium (such as a file, or a memory buffer) or to transmit it over a n...
  • Copying and Cloning Sets: public Object clone()
    Calling the clone() method of a HashSet creates a shallow copy of that HashSet.(the elements of the set aren't duplicated. Both sets wi...
  • String constant pool in Java
    String constant pool is for efficient memory management in java.All the objects in java except string objects are managed in heap memor...
  • Thread.yield() in Java Thread
    The Thread.yield() method is essentially used to notify the system that the current thread is willing to " give up the CPU " for...
Powered by Blogger.