Hello Rubina, POM is Page Object Model which is a design pattern to create Object Repository for web UI elements. Under this model, for each web page in the application, there should be corresponding page class. This Page class will find the WebElements of that web page and also contains Page methods which perform operations on those WebElements. Name of these methods should be given as per the task they are performing.
POM Pattern allows operations and flows in the UI to be separated from verification. This concept makes the test scripts cleaner and easy to understand. With POP object repository is created independent of test cases, so we can use the same object repository for a different purpose with different tools. For example, we can integrate POM with TestNG/JUnit for functional testing and at the same time with JBehave/Cucumber for acceptance testing