Skip to content

Commit 0d37648

Browse files
Create Basic Code Of MutiThreading by implementing Runnable Interface
1 parent 6c20d6c commit 0d37648

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import java.lang.*;
2+
import java.io.*;
3+
import java.util.*;
4+
5+
class Paras implements Runnable
6+
{
7+
public void run()
8+
{
9+
System.out.println("hello there!");
10+
}
11+
}
12+
13+
public class UdemyClasses
14+
{
15+
public static void main(String args[])
16+
{
17+
Paras obj = new Paras();
18+
Thread tobj = new Thread(obj);
19+
tobj.start();
20+
}
21+
}

0 commit comments

Comments
 (0)