1. Class 2 in the second year won first place.

2. Class 2 in the second grade won first place.

3. Class 2-2 in the second year won first place.

4. Class 2-2 in the second grade won first place.

(Are they all grammatical and the same in meaning?)

its grammatical

The most common one is number 2.

All of the sentences are grammatically correct. However, they have slightly different meanings depending on the context in which they are used.

1. "Class 2 in the second year won first place."

This sentence implies that the class referred to as "Class 2" is in its second year of existence. This could be interpreted as being the second year of a program, the second year at a particular school, or the second year overall for the class.

2. "Class 2 in the second grade won first place."

This sentence suggests that "Class 2" is a specific class within the second grade. It indicates that the class, among other classes in the same grade level, won first place in something.

3. "Class 2-2 in the second year won first place."

This sentence includes a specific designation for the class, "Class 2-2." This designation could refer to a particular section or subgroup within the larger class. The meaning would remain similar to the first sentence, indicating that this specific group within the second year won first place.

4. "Class 2-2 in the second grade won first place."

Similar to the third sentence, this sentence suggests that "Class 2-2" is a specific section or subgroup within the larger class. However, it specifies that this subgroup is in the second grade. This would mean that within the overall second-grade class, Class 2-2 won first place.

Overall, while the sentences are similar, the use of "second year" versus "second grade" and the inclusion of a specific class designation can lead to slightly different interpretations.