File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "interfaces" Watch "interfaces" New topic
Author

interfaces

daya daya
Greenhorn

Joined: Dec 11, 2005
Posts: 3
hi friends,
i am beginner in java.
i have some doubts regarding interfaces.guide me please.
can we create objects for interfaces?how?
can we specify an interface as a return type in method?how?
dayadaya.
daya daya
Greenhorn

Joined: Dec 11, 2005
Posts: 3
list is an interface.
i saw a method like public list something()
how is it possible?
i am very much confused
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
can we create objects for interfaces?


No, you can't instantiate (creating objects) an interface.

can we specify an interface as a return type in method?how?


Yes, like this way:

daya daya
Greenhorn

Joined: Dec 11, 2005
Posts: 3
thanks rathi
i got it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: interfaces
 
Similar Threads
Identifying all class and Interfaces used in the class
JDBC Interfaces
Difference between interfaces and abstract classes
calling methods on interface references.
Importing interfaces ....!!