Cognex interview question

the difference between Java and C#