After filing a writ petition, the Supreme Court or High Court hears it preliminary to decide whether to admit it (whether to proceed or dismiss it). Once the petition is admitted, notices are sent to the opposite parties seeking their response. After the opposite parties appear before the court, arguments take place, and the court passes the writ order.