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 “java.io” 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

Life cycle and states of Thread

Like every object, Java thread also has its own life cycle and it goes into different states in its entire life cycle. The various states of java thread are as below 1) New 2) Runnable 3) Running (Not a defined state, but we will use it for better understanding) 4) Waiting 5) Timed Waiting 6) […]

Share this article on
< Previous