How to use exception in a thread? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to use exception in a thread?

How do i do this in a thread? public class Inpdemo{ public static void main(String args[]) throws java.io.IOException{ int x=(int)System.in.read(); System.out.println(x) ; } }

4th Aug 2016, 5:27 AM
Shadman Sudipto
Shadman Sudipto - avatar
1 Answer