class MyThread extends Thread {
public void run() {
System.out.println("Thread is running...");
}
}
Then create and start the thread using: new MyThread().start();
class MyRunnable implements Runnable {
public void run() {
System.out.println("Runnable thread running...");
}
}
To execute: new Thread(new MyRunnable()).start();If vector \( \mathbf{a} = 3 \hat{i} + 2 \hat{j} - \hat{k} \) \text{ and } \( \mathbf{b} = \hat{i} - \hat{j} + \hat{k} \), then which of the following is correct?