I have doubts in interface

Hi all,
I have doubts in interface . You please help me.
My question was
i have two interface. and also i have only one method in both interfaces.these method are same name in both interface
Now i implement these interfaces in my class it's work properly. it doesn't through exceptions.
But i have changed the return type of methods,
ie i put int for one
and void for another one.
it throws exceptions . duplicate method access.
how to i solve this problem? did u catch my point?
please help me Advance in thanks.

i have two interface. and also i have only one
y one method in both interfaces.these method are same
name in both interface
Now i implement these interfaces in my class it's
work properly. it doesn't through exceptions.
But i have changed the return type of methods,
ie i put int for one
and void for another one.
it throws exceptions . duplicate method access.
how to i solve this problem? did u catch my point?Yes I caught it. The solution: don't do it. Methods differ by name and argument type list. Return values are not looked at.
Another solution: have the methods take different arguments. Or rename one of them.

Similar Messages

  • How can I have an english interface to labview if the package is in german

    Hi ,
    I'm a student that makes a project in Germany using labview ... the problem is that my german is not that good , and the labview is in german so here is my question :
    how can I have an  english interface to labview if the package is in german (labview 7 )
    Any help would be apprecieted.

    The only way to really have everything in English is to install an English version of LabVIEW.  You may want to talk to your local NI sales representative about the possibility of getting a different version.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • I have doubt in Read statement

    Hi All.
    I have doubt in Read statement .i need to convert following select statement  as read statement .how can i change help me.
    IF p_field1 IS  INITIAL
         AND p_field2 IS INITIAL
         AND p_field3 IS INITIAL
         AND p_field4 IS INITIAL
         AND p_field5 IS INITIAL.
        SELECT *
              FROM zdbt
               INTO TABLE itab
               WHERE field5 = p_field5
               ORDER BY PRIMARY KEY.
        IF sy-subrc <> 0.
          MESSAGE s035.
        ENDIF.
      ENDIF.
    regards,
    Jay.

    hi
    The READ statement is as below:
    When u have a table already with values and to improve the performance u need to use this.
    Reading Lines of Tables
    To read a single line of any table, use the statement:
    READ TABLE <itab> <key> <result>.
    For the statement to be valid for any kind of table, you must specify the entry using the key and
    not the index. You specify the key in the <key> part of the statement. The <result> part can
    specify a further processing option for the line that is retrieved.
    If the system finds an entry, it sets SY-SUBRC to zero, if not, it takes the value 4, as long as it is
    not influenced by one of the possible additions. If the internal table is an index table, SY-TABIX
    is set to the index of the line retrieved. If the table has a non-unique key and there are duplicate
    entries, the first entry is read.
    Thanks
    Shiva

  • I just got my replacement  iphone5 but i am not satisfied that because the battery backup is worst and the one of the speakers have not working so i have doubted that its a brand new or refurbished one. i replaced it in the warranty period

    hi i just got my replacement  iphone5 but i am not satisfied that because the battery backup is worst and the one of the speakers have not working so i have doubted that its a brand new or refurbished one. i replaced it in the warranty period

    thanks for the information about speakers. and i mean the battery back up the battery i always getting lower even im not use. and can u pls tell me how to check this as a brand new or not. b'coz in the store they gave me replacement phone without boxing. the phone was coverd by wrap and they never give any receipt for this

  • I have doubt on filters

    Hi,
    I am Praveen ,I have doubt on servlet filters.
    First i can create a servlet ,in that servlet i can store some Text message to servlet and again in that text mesage can send the response to the filter.but it can not come pls reply me
    public void doFilter( ServletRequest request, ServletResponse response,
    FilterChain chain ) throws IOException, ServletException {
    response.setContentType("text/plain");
    PrintWriter out = response.getWriter();
    CharResponseWrapper responseWrapper = new CharResponseWrapper((HttpServletResponse)response);
    // Get response from servlet
    StringReader sr = new StringReader(new String(responseWrapper.toString()));
    // out.println("The result is "+sr);
    out.write("Filter latered the response");
    out.write("\n \n");
    out.println(sr);
    chain.doFilter(request, responseWrapper);
    out.flush();
    I am Writing this code ,But output will not come.
    Plsssss

    try placing chain.doFilter(request, responseWrapper); after out.flush();

  • I have doubt in pp module....

    i have doubt in pp module....
    i want to know relationship between pp tables (s901,s902,s903,s904)
    and bomtables (mast,stpo,stko,stas)
    because the material(element) available in pp tables is not
    exists in bom tables.
    key: plant,material,sub material
    i thought that data pbm in bom tables....
    i want to clear that all ( plant,material,sub material) records
    must available in bom tables.....
    in my system....
    ( plant,material,sub material) records available in pp tables.
    but not in bom tables

    STKO                    BOM - header
         STPO                    BOM - item
         STAS                    BOMs - Item Selection
         STPN                    BOMs - follow-up control
         STPU                    BOM - sub-item
         STZU                    Permanent BOM data
         PLMZ                    Allocation of BOM - items to operations
         MAST                    Material to BOM link
         KDST                    Sales order to BOM link
    Check these tables....

  • How to find out in program which all classes have implemented an interface

    Hello,
    I have created an interface and few classes are implementing the interface.
    I want to know in a program which all class have implemented the interface.
    Is it possible to find it out and how?
    Regards,
    Bikash.

    Hi Bikash,
    Read the Database view VSEOIMPLEM with where condition REFCLSNAME = Interface Name and version = 1.
    This would give you all the classes which have implemented the interface and are active...
    If you want to look at the values that the field version can have then see Type Group SEOC ans search for version....
    Hope this help...
    Regards,
    Sitakant

  • I have a macbookpro may 2010 with Intel core 2  duo processor can i upgrade to osx mountail lion ,i have doubts that the macbook becomes very slow on this processor

    macbook pro 2010 with 2.4 Ghz intel core 2 duo can i upgrade to mountaion lion ,i have doubts that it becomes very slow

    Welcome to the Support Commuities. See under Supported Models here:
    OS X Mountain Lion Technical Specifications
    ...Although your MacBook Pro is supported, it may be advisable to wait until OS X 10.8.1 or 10.8.2 in order to avoid the possibility that your Mac slows down due to bugs in 10.8.0.

  • I have doubt regading...response.sendRedtrect,

    Hi,
    I have doubt regading...response.sendRedtrect,
    That is, it possible to send Session object, one server to another server..using response.sendRedirect.
    i would very thankful to give this answer,
    Thank you
    Ramesh

    To my knowledge, response.sendRedirect will be a fresh request. So a new Request object will be created and you will lose all information that you had in your previous request object, including session.

  • Hello sir, Hello sir.    Plz clarify me... My frnd have iphone 5s sealed pack. He purchased it from uk..he told me the phone is unlocked..but i have doubt phone is locked or unlocked..plz help me how can i know phn is locked or unlock???

    Hello sir, Hello sir.    Plz clarify me... My frnd have iphone 5s sealed pack. He purchased it from uk..he told me the phone is unlocked..but i have doubt phone is locked or unlocked..plz help me how can i know phn is locked or unlock???

    hellow sir i have iphone 3gs but its unofficely unlock .
    can i update my iphone ?

  • Hi sdn gems doubt on interface pls help

    my question is i have to do interface between ctts system to sap, in asingle program i have to upload two transactions MSC2 and MB1B with movement 311.
    can anyone pls help by sending code are suggestion.

    HI,
    You can do for any number of transactions.. one after the other...
       prepare BDC data for tcode 1
       call transaction 1.
       prepare bdc dta for tcode 1.
       call transaction 2.
      Thaks
    Mahesh

  • Procedure must have an explicit interface specified

    hello all,
    i'm facing a problem i don't understand. Here is a piece of code that compiles well with gfortran, but not on sun studio:
    program test_fortran
      implicit none
      interface
         subroutine f1(t)
           double precision, intent(in), dimension(:,:) :: t
         end subroutine f1
         subroutine f2(t)
           double precision, intent(in), dimension(:,:) :: t
         end subroutine f2
         subroutine fct()
         end subroutine fct
      end interface
      call fct()
    end program test_fortran
    subroutine f1(t)
      double precision, intent(in), dimension(:,:) :: t
      print *, 'f1'
    end subroutine f1
    subroutine f2(t)
      double precision, intent(in), dimension(:,:) :: t
      print *, 'f2'
    end subroutine f2
    subroutine fct()
      double precision, allocatable, dimension(:,:) :: t
      allocate (t(5,5))
      call f1(t)
      call f2(t)
      deallocate(t)
    end subroutine fctand f90 (SS12u1) gives me errors:
    nemo-henry% f90 test_fortran.f90
      call f1(t)
      ^         
    "test_fortran.f90", Line = 37, Column = 3: ERROR: Procedure "F1" is defined at line 21 (test_fortran.f90).  It must have an explicit interface specified.
      call f2(t)
      ^         
    "test_fortran.f90", Line = 38, Column = 3: ERROR: Procedure "F2" is defined at line 27 (test_fortran.f90).  It must have an explicit interface specified.
    f90comp: 43 SOURCE LINES
    f90comp: 2 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSIAnybody can help?
    thanks in advance,
    gerard

    The Fortran 99, 95, and 2003 standards require a procedure that
    has one or more assumed-shape dummy arguments to have
    explicit interface in any scoping unit in which it appears. In
    your example, the subroutines f1 and f2 have explicit
    interface in the main prgram, but they have implicit interface in
    the subroutine fct. You need to provide explicit interface for
    f1 and f2 in fct. You might want in copy the interface block
    that appears in the main program in fct.
    Sun Fortran keeps a record of the interfaces of the program units
    it encounters. That is why it knows f1 and f2 need to have
    explicit interfaces in fct. If you move the text of f1 and f2 so
    that they appear after fct, the error message is likely to go away.
    The code will be broken, but you will not get an error message.
    Bob Corbett

  • Want to install Oracle Linux Rel.6 and have a graphical interface

    After reading:
    Does Oracle Linux Rel.6 have graphical capabilities
    How do you install the GUI for Oracle Linux Rel 6?

    Dude wrote:
    I'm glad you did not take my remark to call you a Linux enthusiast in bad way. It certainly was not meant to be a bad comment, but it's was probably silly of me to make such a remark anyway. I do not take personally offence easily in a forum like this. No, if you want to offend me, post poor code and claim it as the best thing since slice bread. ;-)
    I guess I strive to be liberal, but by definition I don't think I really fit into any political wing.Likewise. Find politics a necessary evil to keep abreast of - such as the election in the US.
    Back to Linux and your example, I have used such interfaces for many years too. Unfortunately we often have to use what is provided. However, the reason for the text interface is no longer valid, unless your input device is only a text based terminal.Not as much the input device - heck, pure tty devices are pretty much a thing of the past. It is about the complexity of the infrastructure between you and the device you need to administer. And about the task you need to perform.
    The connectivity can mean being unable to run a GUI - due to performance, firewalls, router configurations and so on. The task at hand could very well be easily done, using the relevant o/s commands via a command line interface.
    I think there is nothing against a GUI app that runs on your PC to sends appropriate commands to a text interface over a slow serial link, apart from the effort that is required to interact with errors, etc.Much more complex than that. A terminal server is usually used - and it attaches to the serial/RS232 connections of multiple devices that need to be administered. It will typically reside on a separate management network too, and not on the local company/corporate intranet.
    So for you to access a device to administer, you need an open firewall to the management network to reach the management server that handles the serial console connection for the device you want to administer. You need a valid o/s account on that terminal server. You need to use ssh to access the command line of that terminal server. You need to enter the relevant command that will attach your ssh session to the RS232 console connection to the device to administer.
    There is no GUI app on your side that can not only automagically do all this for you, but also provide you with GUI admin widgets to send commands to the remote device. Even if that remote device being sysadmin'ed is Linux, different distros and different versions of the same distros, means different commands, variances in command line parameters for such commands, and so on.
    A sysadmin that cannot deal with such situations, and need a GUI as a crutch to administer a device.. I for one will not call that person a sysadmin. I would call the person incompetent instead. Harsh views perhaps, but being sysadmin is an unforgiving job. A mistake, or inability to access a device and fix it using the bare minimum, could result in severe financial loss for the company.

  • Have doubt?? Can any one clear it

    Hi guys i have doubt.It will be nice if
    some one clears it
    around.
    Question:
    when making a connection to the database using
    ConnectionPooling should we close
    connection,statementobject and resultSet.
    like this(this is the way i am doing too.)
    try
    ---opening a connection,rs,stmt
    other code
    }catch() {
    finally{
    if(rs!=null)
    rs.close();
    if(stmt!=null)
    stmt.close();
    if(conn!=null)
    conn.close()
    Doubt:
    Is it not Sufficient to close the connection.Can any one
    explain in detail why resultset and statment should be
    closed.

    From my understanding, close releases resources on the object, so I would suspect that each DB driver implements their resources independently. It would be DB driver specific if closing the connection would cascade the resource cleanup to any objects that were created within that connection. I perform the same logic you do at the end of my DB calls. I have each in a try/catch since close throws SQLException, and I would prefer if each got the chance to execute. I don't do anything with an exception if close fails, because there really isn't anything you can do.
    try {
          ...something to DB
    }finally
       try {
           if(rs != null )
              rs.close();
       }catch(Exception e){}
       try {
           if(cursor != null )
              cursor.close();
       }catch(Exception e){}
       try {
           if(conn != null )
              conn.close();
       }catch(Exception e){}
    }

  • Does my W500 have an SDIF interface or not?

    I am trying to do some high-end audio stuff on my Thinkpad W500, which requires having very low-latency audio, and I'm running into all kinds of strange problems. 
    Upon the recommendation of several audio forums I installed the ASIO4ALL driver, but oddly it can only see an SDIF interface for my sound card, not the ordinary headphone/speaker jack. Even stranger, there doesn't seem to be an SDIF interface on the machine. Windows thinks the SDIF interface is attached to the "rear panel", but unless it's referring to the HDMI port, I can't find such a thing. I've searched around and while I found a couple of things that might imply some sort of docking station one needs to actually use SDIF, I haven't found anything definite. Can anyone help clear this up for me?
    The other issues are less likely to be Lenovo-specific, but if anyone has insight about any of the following I'd also really appreciated it:
    Why does ASIO4ALL only see the SDIF interface? Other audio software sees both SDIF and regular speaker interfaces for the sound card (Conexant 20561 SmartAudio)
    Why do does some software (e.g. Reaper) give me the option to use the WSAPI driver in exclusive mode, but others (e.g. Maschine) only let me use shared mode, which has higher latency?
    Thanks to anyone who can help me out! 

    Puppy wrote:
    ThorsHammer wrote: Like lead_org, I heard the display is IPS.  Just looking for authoritative confirmation. 
    Here is http://www.youtube.com/watch?v=3jQQqeZ7_gU a short video of it. Unfortunately its quality is not very good to judge. There are several shots of the display from various angles (1:20 - 1:30, 2:00 - 2:05, 2:57 - 3:01). Moreover 2:27 is a very short shot from top angle where you can find that the white X1 text goes away. Typical sign of TN panel. 3:35 - 3:50 shows detail of Windows taskbar and its contrast does not seem to be very good (for IPS panel).
    But again, due to poor quality of the video it is still a speculation.
    Thanks for the link.  It's incredible to me that members of the press and other journalists haven't asked the simple question of what the screen technology is for the production units.  Nevermind none of them have asked if the screen in the video is actually the same screen that will be used in production units.
    Meanwhile we get to wait for Lenovo to trickle out information over months...
    This is one thing I do like about Apple.  When they announce something, it's the entire specification and you can buy it within hours, not months.

Maybe you are looking for

  • Advice needed for reinstalling iTunes and restoring my library from backup

    I have some issues with my PC (Windows XP) that are not related to iTunes. But I am about to wipe my machine clean. Here is what I plan to do: 0) Sync iPhone with iTunes 1) De-authorize my computer with iTunes 2) Wipe my hard drive, reinstall XP 3) R

  • How to reset UDDI client settings in CE7.1 SR3?

    Hi, I tried to configure UDDI for CE 7.1 SR3 under UDDI Client. Under Settings tab I changed the entries from localhost to my CE server IP. Now I am getting the error whenever I am trying to open UDDI client from my index page. 500 Internal Server Er

  • Preview Application doesn't work

    After installing Lions Preview (Anteprima) doesn't work

  • S_ALR_87012052 - retirements

    Hi, in S_ALR_87012052 you can select a valuation area (e.g. 01, 02.....). When you execute the transaction you get a list with 3 columns with three different values for this valuation area. What I need is the opportunity to select not only one valuat

  • SFTP MGET of large files fails - connection closed - problem with spool file

    I have a new SFTP job to get files from an FTP Server.  The files are large (80mg, 150mg).  I can get smaller files from the ftp site with no issue, but when attempting the larger files the job completes abnormally after 2 min 1 sec. each time.  I ca