JAVA Threads
In java a thread can be created by ..........

Both of the above
Extending the thread class.
None of these
Implementing Runnable interface.

ANSWER DOWNLOAD EXAMIANS APP

JAVA Threads
Given the code. What will be the result?public class Test implements Runnable{ public static void main(String[] args) throws InterruptedException{ Thread a = new Thread(new Test()); a.start(); System.out.print("Begin"); a.join(); System.out.print("End"); } public void run(){ System.out.print("Run"); }}

"BeginEndRun" is printed.
Compilation fails.
"BeginEnd" is printed.
"BeginRunEnd" is printed.
An exception is thrown at runtime.

ANSWER DOWNLOAD EXAMIANS APP

JAVA Threads
Analyze the following code:public abstract class Test implements Runnable{ public void doSomething() { };}

The program will not compile because it does not implement the run() method.
None of these
The program compiles fine.
The program will not compile because it does not contain abstract methods.

ANSWER DOWNLOAD EXAMIANS APP