File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes 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 " Question" Watch " Question" New topic
Author Question

Harry Preston

Joined: Jun 01, 2013
Posts: 9
From JDK,

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.

Harry Preston

Joined: Jun 01, 2013
Posts: 9
Got it, thanks help
I agree. Here's the link:
subject: Question
It's not a secret anymore!