Tony Docherty wrote:The first exception is thrown because the socket was unable to connect to anything. Presumably you don't have anything listening for a connection on port 4000 on the localhost.
Tony Docherty wrote:
It can if it is the same package. If you want methods/variables to be accessible to sub classes in external packages then mark them as protected.
Tony Docherty wrote:
Why not try it and see what happens.