Pregunta de entrevista de Infosys

Java Encapsulation, Access specifiers, Aggregation,composition,hooks in react?