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

None of these
Extending the thread class.
Both of the above
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"); }}

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

ANSWER DOWNLOAD EXAMIANS APP