File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServerSocket.java Question

 
Harry Preston
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From JDK, ServerSocket.java



SocketImplFactory.java



Question
How can you create instance (factory) of interface (SocketImplFactory)?
"= null" wat mean?
 
Myyron Murray Latorilla
Ranch Hand
Posts: 65
Eclipse IDE Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Harry Preston
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it, thanks help
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic