![]() ![]() In such cases we have to use delay in our code. We are aware that calling certain API like Google Maps API would take at least 5-8 seconds of time for fetching a response. Before we move on further to understand the working of delay in Java, let’s understand some practical scenario in which we would need a delay in execution.Īs soon as the application is loaded and the user logged in, we want to fetch the current location of the user. ![]() Let’s discuss about scenario when we want to introduce a delay in execution of a subsequent program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |