Pregunta de entrevista de Alpha Payments

Why interface are used in java