In  trains the drinking of alcohol is prohibited. In general eating is allowed, but it should happen very carefully so that nothing will get dirty and so that other travelers are not disturbed. You shouldn't speak too loud and offer your place to elderly/frail people.