UBS interview question

Java, OOPS, SQL, Singleton , Diamond Problem