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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Map Method return type interface" Watch "Map Method return type interface" New topic
Author

Map Method return type interface

Inesh Hettiarachchi
Greenhorn

Joined: Feb 07, 2004
Posts: 25
Hi,

Cant we use an interface type as a method return type in our web service class

eg.

public Vector<InterfaceType> getSelectedObjects()
{
//...
return objects
}
if so can you please explain.
Thanks in advance,
inesh.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Map Method return type interface
 
Similar Threads
BufferedReader Help
What is covariant type
deviation in the return type of getParameterValues() method
findByPrimaryKey
an interview question