Thanks for replying...
(Collections students??)
sorry its,
Collection students
The inverse side of a bidirectional relationship must refer to its owning side by use of the mappedBy element of the OneToOne, OneToMany, or ManyToMany annotation. The mappedBy element designates the property or field in the entity that is the owner of the relationship. So the mappedBy in Faculty should refer to the faculty field in Student, like written in answer "a".
as suggested, following is correct answer
a - @ManyToMany(mappedBy="faculty") on faculty field.
but In Many-to-Many owner can be any side, so can I say, following is also correct,
@ManyToMany(mappedBy="students") on faculty field
Reason for doubt is that I have not seen any example of follwing yet,
@Entity
public class Student {
........@ManyToMany(mappedBy="
faculty")
........Set <Faculty>
faculty;
}