0
What is the output of the following Java program?
public class Main {
public static void main(String[] args) throws Exception {
Thread t = new Thread(() -> System.out.print("T"));
t.start();
t.join();
System.out.print("M");
}
}- AMT
- BTM
- CT
- DThe order of the output is unpredictable
Correct answer: B