I have a general question. I have been reading a Java book and I came across a program that uses Threads. Book stated that Threads are used for multiprocessing. I want to know that if I write :
Thread t=new Thread(new classname);
t.start;
//after it some GUI code to display the input received from user in run method
and I override run method to get input from user,then, will it wait for input and then perform GUI tasks like opening frame or it will perform both tasks simultaneously.