the ending 야 is a casual ending so you use it only between friends or those younger than you. Unless you want to be rude :P
Edit. Oh, yeah, I forgot to add that 야 is the casual ending of the verb 이다 (to be) as jon mentions.
Polite form = 이에요
Casual form = 이야