Pergunta de entrevista da empresa Barclays

if I have a Get endpoint and I have to call that through Java code, how will you do that?