为什么调用类的构造函数 会调用类里面的方法?
ServerThread serverThread = new ServerThread(socket);
serverThread.start();
会自动调用类里面的方法?自动调用run?
public class ServerThread extends Thread {
Socket socket = null;
public ServerThread(Socket socket) {
this.socket = socket;
}
public void run() {
}
}