Guidewire interview question

agile vs waterfall model? basic core java questions from class inheritance , constructors and string.