Siemens interview question

Java concepts , OOP concepts