SoFi Interview Question

Simple OOPS questions, questions about Java based loops and what will be the output