Collections
-
Core Java
40 Java Collections Interview Questions and Answers
Java Collections Framework are the fundamental aspect of java programming language. It’s one of the important topic for java interview…
Read More » -
Core Java
Selecting your Collections library
Is this really something you should bother? Is there something fundamentally wrong with java.util.ArrayList and java.util.HashMap? For most of the…
Read More » -
Core Java
Type-safe Empty Collections in Java
I have blogged before on the utility of the Java Collections class and have specifically blogged on Using Collections Methods…
Read More » -
Core Java
Java: Choosing the right Collection
Here is a quick guide for selecting the proper implementation of a Set , List , or Map in your application. The best general purpose or…
Read More » -
Core Java
Java 7: HashMap vs ConcurrentHashMap
As you may have seen from my past performance related articles and HashMap case studies, Java thread safety problems can…
Read More » - Core Java
-
Core Java
Array, list, set, map, tuple, record literals in Java
Occasionally, when I’m thrilled by the power and expressiveness of JavaScript, I find myself missing one or two features in…
Read More » -
Core Java
Common and Unique Elements In Multiple Collections
This week, we’ll take a break from higher level problems and technology posts to deal with just a little code…
Read More » -
Enterprise Java
Avoid Lazy JPA Collections
Hibernate (and actually JPA) has collection mappings: @OneToMany, @ManyToMany, @ElementCollection. All of these are by default lazy. This means the…
Read More »