and then compile and run the program, observing the results.
2. Modify the above code to use the alternative method for multithreading (i.e.,
implementing theRunnableinterface). Name your main class
RunnableHelloByeand your subsidiary classesHelloandGoodbye
respectively. The first should display the message 'Hello!' ten times (with a
random delay of 0-2 seconds between consecutive displays), while the second
should do the same with the message 'Goodbye!'.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here