Rice is a grain, like wheat and oats. Corn is a grain as well, but when it's immature, as it is canned or eaten on the cob, it's considered a vegetable. I suppose if you ate immature rice, it would be a vegetable but it doesn't sound very appetizing to me.