BMO Financial Group interview question

Why is string parameter in java