b and d Explanations : Line 3 will results in a compilation error because it is comparing collection of two different types. equals() in the ArrayList(implemented in AbstractList) compares all the collection objects one by one and if all matches it returns true else false.In this case there is no objects at all to compare with hence will return true.
~Sanjeev Singh<br />SCJP 1.5
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads