Java – Generic Class Example

Output:

Integer Value :10
String Value :Hello World