RBC interview question

What would be the output from this Java programme?

Interview Answer

Anonymous

4 Dec 2024

I answered some of the questions correctly but for some of them maybe I didn't give the best answer as there were more than 10 different small programmes.