what is the advantage of using threads when we can do the same task using functions?
A simple class with a main function
say
class Abc {
public static void main(
String args[]) {
System.out.println("hi");
}
}
/**does this program use threads***/
/***is it single thread****/