What is an advantage of declaring a GenericExample<T extends String, E extends Person> class?
GenericExample<T extends String, E extends Person>
It restricts the class to only operate with String and Person types, enhancing type safety.
It allows mixing any types within the same instance.
It simplifies the syntax for creating new instances of GenericExample.
GenericExample
It automatically casts between String and Person objects.
String
Person