Q3 Java
AI-enhanced title and description
Q.Create two threads and assign names ‘Scooby’ and ‘Shaggy’ to the twothreads. Display both thread names.
CODE:
OUTPUT: