Computer Science, asked by ruchichopra6429, 1 year ago

How many lines of output will this code produce? class B implements Runnable { public void run() { System.out.println("B"); } } class A extends Thread { public void run() { System.out.println("A"); Thread t = new Thread(new B()); t.start(); } public static void main(String[ ] args) { A object = new A(); object.start(); } }

Answers

Answered by nitish8089
6
output
 -  -  -  -  -  -  -  -  -
A
B
Similar questions