This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Which statements are true about generics in Java? Select the 2 correct answers. (a) Static member classes and interfaces can have type parameters. (b) Non-static member classes can have type parameters. (c) Anonymous classes cannot have type parameters. (d) Exception types can have type parameters. (e) Exception types can be used as type parameter bounds. (f) Enum type can have type parameters. (g) Parameterized types ArrayList<String> and ArrayList<Long> have different types at compile time, but share the same runtime type, i.e. ArrayList. (h) Arrays of concrete parameterized types cannot be created, i.e. new ArrayList<String>. (i) Arrays of unbounded wildcard parameterized types can be created, i.e. new ArrayList<?>. (j) Arrays of raw types can be created, i.e. new ArrayList.
which two will you choose,and can someone kindly explain the reason of your choice.
many thanks! [ August 17, 2006: Message edited by: Quin Matthew ]