SHOWING THE MULTIPLE EXCUTION OF TASK SINGLE TASKING USING THREAD - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
SHOWING THE MULTIPLE EXCUTION OF TASK SINGLE TASKING USING THREAD

SHOWING THE MULTIPLE EXCUTION OF TASK SINGLE TASKING USING THREAD


 SHOWING THE MULTIPLE EXCUTION OF TASK
SINGLE TASKING USING THREAD

class MyThread implements Runnable{
public void run()
{
  task1();
  task2();
  task3();
}
void task1()
{System.out.println("task1");}

void task2()
{System.out.println("task2");}

void task3()
{System.out.println("task3");}

}
class Single{
public static void main(String[]args)
{
 MyThread mt=new MyThread();
 Thread t=new Thread(mt);
  t.start();
}
}

About EasyToCode

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.