Question
What does the following code block define? class Gen { T ob; }
Answer: Option D
Was this answer helpful ?
class Gen This defines the generics declaration where 'T' is the name of type parameter.This parameter is used as a placeholder for the actual type that will be specified when a Gen object is created.Gen is a generic class . T is used to declare a variable called 'ob'.
Was this answer helpful ?
Submit Solution