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 3 of 3

Thread: I have a doubt in java Interface , please help me?

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I have a doubt in java Interface , please help me?

    class A //does not implement any interface
    {

    interface InterfaceI1=(InterfaceI1)getServletConfig().getSer vletContext().getAttribute("something");
    // It's an interface but class a does not implement this interface but another class in the same package implements this interface
    String str[]=interfaceI1.getSummary()//getSummary is a methnod in InterfaceI1

    //I wolld like to know what does Str[] contain and how does it work.
    }


  2. #2
    Junior Member
    Join Date
    Aug 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java interface

    class A //does not implement any interface
    {

    interface InterfaceI1=(InterfaceI1)getServletConfig().getSer vletContext().getAttribute("something");
    // It's an interface but class a does not implement this interface but another class in the same package implements this interface
    String str[]=interfaceI1.getSummary()//getSummary is a methnod in InterfaceI1

    //I wolld like to know what does Str[] contain and how does it work.
    }

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: I have a doubt in java Interface , please help me?

    Your threads were merged and moved. Please DO NOT post multiple threads on the same topic. Please DO post your code correctly using code or highlight tags which are explained here.

Similar Threads

  1. Replies: 0
    Last Post: April 5th, 2013, 10:20 AM
  2. java project doubt
    By annapurna in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 3rd, 2013, 06:48 AM
  3. When to use Comparator and Comparable Interface in java
    By diyaots in forum Java Theory & Questions
    Replies: 7
    Last Post: October 26th, 2012, 09:35 AM
  4. Doubt related to Java
    By Jagatha in forum Member Introductions
    Replies: 1
    Last Post: September 15th, 2011, 04:21 AM
  5. Java web console with Java Native interface
    By rcbandit in forum Java Native Interface
    Replies: 1
    Last Post: August 22nd, 2011, 08:12 AM

Tags for this Thread