Nokia interview question

Java programming syntax and test cases