package com.day18.Thread; public class ThreadFour { public static void main(String[] args) { new Thread("Lakers") { public void run() { System.out.println(this.getName()+" Kobe"); } }.start(); new Thread("Celtics") { public void run() { System.out.println(this.getName()+" KG"); } }.start(); } }