wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes ServerSocket.java Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "ServerSocket.java Question" Watch "ServerSocket.java Question" New topic
Author

ServerSocket.java Question

Harry Preston
Greenhorn

Joined: Jun 01, 2013
Posts: 9
From JDK, ServerSocket.java



SocketImplFactory.java



Question
How can you create instance (factory) of interface (SocketImplFactory)?
"= null" wat mean?
Myyron Murray Latorilla
Ranch Hand

Joined: Dec 10, 2009
Posts: 65

You create an instance using a class that "implements" that interface.

"null" assignment is unnecessary as the Class's Object type reference variable always get default value of null. Also means the reference variable isn't pointing to any object initially.


OCPJP6
Harry Preston
Greenhorn

Joined: Jun 01, 2013
Posts: 9
Got it, thanks help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServerSocket.java Question
 
Similar Threads
the Socket class
new Socket ((SocketImpl) null) ???
Making the Data Class a Singleton & Thread Safe
Question on singletons
Abstract Factory Responsibility