Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13316
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: doubt in java |
| Date | 2012-04-02 12:41 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <3023037.478.1333395667012.JavaMail.geo-discussion-forums@pbrx1> (permalink) |
| References | <2e03a8ae-b9d6-4000-9123-d6cbeb69c449@pz2g2000pbc.googlegroups.com> |
bright jose wrote: > What is interface and use?...Plz explain with one example.. "Plz" is not an English word. An interface in Java is an abstract declaration of type. You use it to identify a type without regard for the details of the implementation, only for the allowed behaviors and attributes. A classic example is 'java.util.List<E>', an interface that declares the methods that all implementations of the interface must implement. If you look at the Java tutorial it explains the basics of what an interface is. The Javadocs for a specific interface like 'java.util.List<E>' will tell you what methods it declares and some of its subtypes (interfaces and implementing classes). Have you looked at the tutorials? Done a Web search? -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
doubt in java bright jose <brightjoz@gmail.com> - 2012-04-02 00:42 -0700 Re: doubt in java Lew <lewbloch@gmail.com> - 2012-04-02 12:41 -0700 Re: doubt in java Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-04-02 20:22 -0400 Re: doubt in java Roedy Green <see_website@mindprod.com.invalid> - 2012-04-02 17:42 -0700
csiph-web