Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Interface parameters?

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Interface parameters?

    Hi guys what is a parameters of interface in Java?


  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Interface parameters?

    Please give us some context because the statement "parameters of interface" doesn't mean much to me. Where exactly have you seen this and how was it used?

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Interface parameters?

    example:

    interface A<T> extends Comparable<T> {
    // ...
    }
    or

    interface A<T extends Comparable<T>> extends Comparable<A<T>> {
    // ...
    }



    "<T extends Comparable<T>> extends Comparable<A<T>>" and <T> extends Comparable<T> what is this?
    thank you

  4. #4
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Interface parameters?

    You appear to be referring to the generic parameters being used, here T and its many variations. Please have a look at the Java Generics Tutorial and also this tutorial for details on what these are and how to use them.

Similar Threads

  1. [SOLVED] Why re-name these method parameters?
    By pict3000 in forum Object Oriented Programming
    Replies: 6
    Last Post: August 9th, 2012, 06:07 AM
  2. Help using parameters
    By white97 in forum Object Oriented Programming
    Replies: 6
    Last Post: August 9th, 2011, 07:28 PM
  3. Actual and Formal Parameters
    By mikec2500 in forum Object Oriented Programming
    Replies: 4
    Last Post: February 10th, 2011, 08:48 AM
  4. Actual and formal parameters
    By javanoobie in forum Java Theory & Questions
    Replies: 4
    Last Post: December 5th, 2010, 08:29 AM
  5. New to vectors passing parameters
    By osmaavenro in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 30th, 2010, 04:32 PM