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 interface reference 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 "interface reference" Watch "interface reference" New topic
Author

interface reference

harsh garg
Ranch Hand

Joined: Jul 13, 2008
Posts: 33
how we create the object for the interface?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39537
    
  27
It's as simple as:

Map myMap = new HashMap()

Or are you asking how to write a class that implements an interface?


Ping & DNS - updated with new look and Ping home screen widget
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: interface reference
 
Similar Threads
Time Capsule
Home interface or Home Interface stub
Writing an Interface
what results byte code in java
How To Call Two Different Classes From the Main Program Using the Same API?