final on ServerSocket and Socket

Glynn Clements glynn at sensei.co.uk
Wed Dec 16 08:44:31 PST 1998


Amancio Hasty wrote:

> Any good reasons why the following classes are declared final?
> 
> java.net.ServerSocket      
> java.net.Socket

Because that's what the specification says.

Note that both of these classes are simply `veneers'. They use the
SocketImplFactory instance specified by setSocketImplFactory to create
a SocketImpl. Each method then just calls the corresponding method(s)
of the SocketImpl instance to perform the work.

-- 
Glynn Clements <glynn at sensei.co.uk>


More information about the kaffe mailing list