Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: doubt in java Date: Mon, 2 Apr 2012 12:41:06 -0700 (PDT) Organization: http://groups.google.com Lines: 17 Message-ID: <3023037.478.1333395667012.JavaMail.geo-discussion-forums@pbrx1> References: <2e03a8ae-b9d6-4000-9123-d6cbeb69c449@pz2g2000pbc.googlegroups.com> NNTP-Posting-Host: 69.28.149.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1333395667 5503 127.0.0.1 (2 Apr 2012 19:41:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 2 Apr 2012 19:41:07 +0000 (UTC) In-Reply-To: <2e03a8ae-b9d6-4000-9123-d6cbeb69c449@pz2g2000pbc.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Received-Bytes: 1810 Xref: csiph.com comp.lang.java.programmer:13316 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', 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' 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