Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyThread extends Thread{
- public void run(){
- System.out.println("Thread RUN");
- }
- }
- public class MySimpleThreadDemo {
- public static void main(String args[]){
- System.out.println("Thread MAIN");
- MyThread mt=new MyThread();
- mt.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement