File I/O Overview

I/O stands for input and output Java provides several APIs to perform input and output operations and all these APIs are bundled in a package called “” package. Input means reading data from a source Example: Reading data from a file Reading data from keyboard output means writing data to the destination. Example: Writing data […]

Share this article on

Thread with sleep method

The sleep() method of Thread class is used to pause the execution of current thread for specified time. This method takes the “long” value which is the actual time in milliseconds for thread to sleep. There are 2 overloaded methods available for sleep() 1) public static void sleep(long millis) throws InterruptedException 2) public static void […]

Share this article on
< Previous