Sequencing in multi-threading can be achieved by different means but
you can simply use join() method of thread class to start a thread when another one is
finished its execution.
To ensure three threads execute you need to start the last one
first e.g. T3 and then call join methods in reverse order e.g. T3 calls T2. join, and T2
calls T1.join, this ways T1 will finish first and T3 will finish last.
Core Java Interview Questions
Object Oriented Programming(OOP) Questions and Answers
Collections Interview Questions
Java Exceptions Interview Questions
Java Threads Interview Questions
Collection framework in java interview questions
oops concepts with example in java
Java Serialization Interview Questions
Top 20 Core Java Interview Questions with Answers
String Interview Question in java With Example
synchronization interview questions
Java Reflection Interview question
Java Executor Framework (JDK 1.5) Interview Questions
JDK 1.7 interview Questations and Answers
Java I/O interview question with example