What are synchronous and asynchronous methods and how do you use them?