Díona interview question

I was asked technical questions on java