Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13316

Re: doubt in java

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 <lewbloch@gmail.com>
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> (permalink)
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

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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