1. My favorite class is a math class.

2. My favorite class is math class.
(Which one is right? are both OK? Do they have a different meaning?)

3. I have two math classes today.
4. I have two math class today.
(Which one is right?)

This is better:

2. My favorite class is math class.

This one is correct:

3. I have two math classes today.

Since you have TWO math classes, "classes" must be plural.

If you're taking two math classes, then it would be more accurate to say "My favorite class is algebra (or geometry or trigonometry)."

Both versions of the sentences are grammatically correct, but they have slightly different meanings.

1. "My favorite class is a math class." - In this sentence, the speaker is indicating that they have multiple classes, and out of those classes, the one that they like or enjoy the most is a math class. Here, "a" is used to indicate that math class is just one of the classes they are referring to.

2. "My favorite class is math class." - In this sentence, the speaker is stating that their favorite class overall is math class. Here, "math class" is being used as a singular noun without any article, indicating that math class is the specific class that they prefer above all the others.

Regarding the third and fourth sentences:

3. "I have two math classes today." - This sentence is correct because it uses the plural form of "math classes" to indicate that the speaker has two separate classes related to math on that day.

4. "I have two math class today." - This sentence is grammatically incorrect. The word "class" should be pluralized to match the number of classes the speaker has, so it should be "I have two math classes today."

In summary:
- Both versions of the first set of sentences (1 and 2) are correct, but they convey slightly different meanings.
- The third sentence (3) is correct because it uses the plural form "math classes" to indicate multiple classes.
- The fourth sentence (4) is incorrect because it should be pluralized as "math classes" instead of "math class."