Place code into the class so that it compiles & generates the out put answer=42
Note:Code options may be used more than once.
This question is from SCJP , I have posted answer. I can't understand why they used
public Gen (T object){this.object = object}
instread of
public T ( T object){this.object = object}
i am getting confused in this. Please help me out