Pergunta de entrevista da empresa Alpha Payments

Why interface are used in java