Hello everyone,
Can someone please explain to me the meaning of the code below:
public class Client extends javax.swing.JFrame implements Runnable {
// constructutor
public Client( String host, int port ) {
.
.
.
new Thread( this ).start();
}
public void run() {
something....
}
}
This is the only part I have not understand:
new Thread( this ).start();
What does the "this" represents?
What is new Thread?
.Start() will run what?
Thread( this ) what is the type of his here and where it goes?
Thanks in advance.