You are on page 1of 2

NAME: RANJIT RAJ UID:20BCS9943

SECTION: 804-A SUB: JAVA LAB

Q.Create two threads and assign names ‘Scooby’ and ‘Shaggy’ to the two
threads. Display both thread names.

CODE:

OUTPUT:

You might also like