Pergunta de entrevista da empresa SecureView

How does the structure in the collection framework understand which type of object is added, if the object type is not specified?