Why is interface required

Friends can u please explain me why Interface is required.I read few explanation and I am having problems understanding it .
thanks
Manohar

For example you can specify interface like this:
public interface Namer {
public String getName();
Then you can implement class with code like this:
public void printName(Namer nm){
System.out.println(nm.getName());
Then you can tell your friends 1,2,3:
1 implement for me Namer to take name from net
2 implement for me Namer to take name from dastabase
3 implement for me Namer to take name from flat file
And when they provide you with this implementation, every class which implements Namer interface can be passed to your printName method.
This is very syntetic example. In short: interfaces provides some abstraction, they allow you to specify inter-object communication abstracting from implementation details. In my opinion greatest set of interfaces is JDBC.

Similar Messages

  • Trying to Burn MP3 CD - Why Does it Require So Many CDs?

    I imported a bunch of my daughter's CDs as MP3 files. When I was done, I created a playlist in iTunes and moved all the MP3 files into it. iTunes tells me that I have 304 songs in the playlist, taking up 696.8 Mb. I then tried to burn the entire playlist to CD, but in the course of the burn iTunes told me that the burn would span CDs. After inserting my 4th CD, I stopped the process.
    I might be able to understand why this would take 2 CDs (even though I used a 700Mb CD), but why did it require so many more? More importantly, how do I set up iTunes so I can import around 600 Mb of MP3 songs onto only one CD? This would seem to me to be a pretty common process, but iTunes is giving me fits!
    Any help here would be greatly appreciated.
    TIA!
    Scott

    I have read many threads about similar situations and the only thing I can suggest is buy "music pro cd-r's". My friend and I had the same problem and that solved it, hope it does for you too.
    24" imac intel core duo   Mac OS X (10.4.8)  

  • Why is Domain required for an identity in the FIM Service?

    I have a scenario where FIM is managing identity, but not all identities have an Active Directory account. I have a flag in the FIM Portal (Service) that indicates if a particular
    user is entitled to an AD account or not. My provisioning setup adds or removes the AD account as appropriate. To support FIM Portal activities for those that do have AD accounts, I populate AccountName, Domain, and ObjectSID in the FIM Service from their
    corresponding attributes in AD.
    What I have noticed is that it does not seem possible to null out or delete the Domain attribute for a user in the FIM Service. I can delete the attributes for both AccountName
    and ObjectSID without issues.
    When attempting to remove the Domain attribute for a user I get the following in the event logs:
    Microsoft.ResourceManagement.WebServices.Exceptions.UnwillingToPerformException: Other ---> System.Data.SqlClient.SqlException: Procedure or function 'GetDomainConfigurationIdentifiersFromDomain'
    expects parameter '@domainName', which was not supplied.
    I assume that something internal to the FIM Service is trying to do some magic with validating the domain name and the domain configuration. I did found a post saying, “Yeah,
    you have to populate Domain”:
    http://social.technet.microsoft.com/Forums/en-US/f207caa9-3a6f-4f2d-8461-a83777280803/fim-service-ma-export-failedmodificationviawebservices-error?forum=ilm2
    My question is why is Domain required for a user? It is obviously needed for users that have AD accounts an must authenticate with the Portal, but in the case where a user
    does not have an account (and therefore does not have a domain), it feels odd to store the incorrect data for the user. It also looks weird when you bring up list of users in the portal and see domain values for users that do not have accounts. In this particular
    case, the client has many domains and does have the Domain and AccountName attributes displayed on the user search results page.

    Hi Henry,
    Using another domain attribute and workflow to maintain the actual Domain and DomainConfiguration is a good suggestion, thanks.
    My original question still stands however... Why is Domain required in the FIM Service?
    It is sounding like the answer is "It is not really required on it's own, but there is an internal process that requires it if there is a value for DomainContext set (and there is some magic that sets DomainContext, so you have to manually clear it.)"
    Since DomainContext is automatically set when a client writes a value to Domain. I would suggest that it is a bug that DomainContext is not automatically cleared when Domain is cleared.
    I poked around a bit and the bug can be fixed by changing the stored procedure definition to allow null parameters. In the FIM Service database the stored procedure [fim].[GetDomainConfigurationIdentifiersFromDomain] has a parameter declaration of "@domainName
    NVARCHAR(448)". If this is changed to "@domainName NVARCHAR(448) = null" the problem appears to be solved.
    Making this change would of course be totally unsupported, but perhaps it can be included in a future product update.
    For now I will use Henry's workaround, or just live with potential out of date Domain data.
     Thanks

  • Why is adobe requiring me to make a purchase in order for me to create a pdf from word? I paid for the service in April which included unlimited conversions for a year

    why is adobe requiring me to make a purchase in order for me to create a pdf from word? I paid for the service in April which included unlimited conversions for a year

    Make sure you're actually logged-in to your account.

  • IF UPDATES TO APPS THAT CAME WITH OUR MAC ARE FREE, WHY DOES APPLE REQUIRE BILLING INFORMATION TO BE COMPLETED IN THE SCREEN JUST BEFORE ACCESS TO INSTALLING FREE UPDATES???

    IF UPDATES TO APPS THAT CAME WITH OUR MAC ARE FREE, WHY DOES APPLE REQUIRE BILLING INFORMATION TO BE COMPLETED IN THE SCREEN JUST BEFORE ACCESS TO INSTALLING FREE UPDATES???

    It is necessary to confirm your identity as the 'buyer'.  Please do not use all capital letters.  It is not well regarded here and can be tricky to read for some. Thank you.

  • Why am I required to sign in as a TRIAL member? I'm a member for a year

    I've gone through this before and I'm getting tired of it. Adobe's management of Creative Cloud is terrible!!!
    I'm being charged for multiple memberships and am trying now to resolve this issue.  Suddenly I find that I have to register the software I have already downloaded for over a year as a TRIAL membership.  I'm an active subscriber for over a year and am being charged on a monthly basis.  If you don't get your act together, you're going to lose a LONGTIME customer.

    Thanks for responding.  My name is Joel Cotten  My email is [removed].
    I'm trying to deal with multiple billings for my Cloud membership.  After talking to India billing about this they terminated the erroneous billing for $49.99+tax and then I get this email:
    Hi Joel,
    Your Creative Cloud membership will be transitioned to a Free membership at the end of the next billing period. This means you will lose access to many of the apps and services included with a Paid Creative Cloud membership.
    In addition, since Free membership offers only 2GB of storage, you may need to remove files to get your cloud storage down to 2GB (or to purchase additional storage separately if you choose). If you leave more than 2GB of files on Creative Cloud for more than 90 days, you may lose access to some or all of your files. If you decide you want to return to a Paid membership, update your payment information and desired plan on the account management page.
    If you need help or have any questions, contact Customer Support.
    Thanks and enjoy,
    The Adobe Creative Cloud Team
    Which membership are you talking about?  I've been billed for two different memberships.
    If my next credit card statement shows a May billing for $53.00 plus another for $32, I'm getting out of your CLOUD altogether.
    I've used Adobe products for many years.  I thought the Creative Cloud was a great idea and subscribed right away.  However, its implementation by your so-called team has become a nightmare.  The right hand doesn't know what the left hand is doing.  Is there anyone in the US whom I can talk to who knows what the hell is going on?
    Kapil Malik <[email protected]> wrote:
    Kapil Malik Kapil Malik created the discussion
    "Re: Why am I required to sign in as a TRIAL member? I'm a member for a year"
    To view the discussion, visit: http://forums.adobe.com/message/5319192#5319192

  • Why TMS is required in que groups?

    Why TMS is required in /QUE groups even when no Data Base transactions used by the application.
    Is it to manage the que device?????
    Please guide.
    -Arvind Tripathi

    /Q are XA compliant resource managers so you need the
    TMS( non NULL) .

  • Why is apple requiring me to enter a gift card credit card or itunes card in order set up a new account

    why is apple requiring me to enter a gift card, credit card or itunes card in order to set up a new account

    My assumption is because you aren't setting the account properly. You can't set up an Apple ID and then try to use it without a credit card unless you follow a very specific procedure which you obviously did not do.
    You have to try to download a free app first - before you set up the ID - and then create the ID from the prompts. You set the ID up first and it doesn't work that way. You will have to either enter a credit card now and then delete it later, or start all over again with a new ID. If you start all over again, you have to sign out of the current ID in Settings>Store - tap your ID and sign out. You will also need another email address because you already associated your email address with the first ID.
    This explains how to set up an Apple ID/iTunes account without a credit card.
    http://support.apple.com/kb/ht2534
    As I said, this is my assumption, if there is something else going on here, post back with something more detailed other than "why is Apple requiring ...." We can't possibly know why you can't do without some more information to go on.

  • What is Enhancement and why is it required in SAP?

    What is Enhancement and why is it required in SAP?
    Message was edited by:
            Rajalekshmi V

    Hi,
    SAP designed some standard scenmarios to meet most of the clients requirements. But still it won't suit the clients exact business spcifications, so we ned this enhancements.
    it's basically to enhance the Std SAP as per the clients requirements.
    An enhancement includes one or more components (function exits, menu enhancements, screen enhancements). For enhancements, you are recommended to observe the following naming convention.
    We add fields using the Screen exits, desing menu's using menu exits and Function exits to enhance the std functionality of the programs.
    reward if useful
    regards,
    Anji

  • WHY  PGA  IS  REQUIRED  FOR  EVERY USER  ?

    Good Morning Everyone ;
    I have a question  about PGA.
    WHY  PGA IS REQUIRED FOR  EVERY USER ?
    What i got from google ..
    Even though the parse information for SQL or PL/SQL may already be available in library cache of shared pool,
    the value upon which the user want to execute the select or update statement cannot be shared.
    I cant realize it   Can anyone show clear  example , if  possible ?
    DB Version is  10.2.0.4.0
    OS : oracle linux 5.5
    Thanks in advance ..

    Thanks aman and heok.
    My Question :
    Your explanation is clear. I think i am getting little bit confused.
    Could you please clarify little more ?
    >> session 1 :
    user is HR
    SQL>select * from tab1  ORDER BY name;
    >> session 2 :
    user is scott
    SQL>select * from tab1 where ORDER BY name;
    >> session 3 :
    user is USER1
    SQL>select * from TAB1 where ORDER BY name;
    >> session 4 :
    user is USER2
    SQL>select * from TAB1 where ORDER BY name;
    IS this right aman ?
    Already sql statements are avail in SGA ,Even though all above users needs same information.
    Oracle does sorting operation in PGA. If PGA exceeds , oracle will use temporary tablespace .
    Thanks heok and aman.

  • Why an organization require SSL for Shared Web Applications?

    Hi
    what is ssl and why an organization  require SSL for Shared Web Applications?
    adil

    Hi adil,
    Secure Socket Layer (SSL) is an encrypted communication protocol which uses encryption certificates. For more information about SSL in SharePoint, please refer to:
    http://technet.microsoft.com/en-us/magazine/2009.09.insidesharepoint.aspx
    http://technet.microsoft.com/en-us/library/cc262366(v=office.15).aspx
    SSL is supported for server-to-server authentication and app authentication.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Why do we require Wildcard control flow rule?

    Hi,
    Why do we require wildcard control flow rule?
    Can anyone please explain me with a scenario?
    Thank you,
    Srinivas

    Wildcard rule means the rule is valid on all the taskflow's pages, so you don't have to wire the case separately from each page. Handy if you have for instance a button with a common action on many pages.
    See this example: http://blogs.oracle.com/jdev11g/2009/10/wildcard_control_flows_for_page_navigation.html

  • ERecruitment: Publication - XML interface requirements

    Hi All
    What are the interface requirements that needs to be satisfied if XML need to be transferred to another system?
    In case of a extenal Posting channel in e-recruitment, how is the data transfer from SAP to the external system happening.
    Thanks
    Sriram

    Hello sriram,
    to integrate the sap e-recruiting with an external jobboard via xml you can either use the XI integration, some consultancy solution or develop an own publisher class and periodical service to create the xml.
    The formatting of the xml and the form of transfer (send by mail, upload to a server, put on a share where the job board is reading it, ...) differ from board to board. Some support the HRXLM, some have a proprietary xml. Best is to check back with the job board to get detailed information on the requirements they have and the services they offer.
    Best regrads
    Roman

  • Why name "Interface"?

    hi all,
    can anybody tell me why name "interface" in java. I was asked this question in an interview.. pls help..
    thanx

    Here is a link to the java tutorial where the word
    interface is explained in non-computer terms. It
    gives you a good idea why the word interface was
    chosen.
    http://java.sun.com/docs/books/tutorial/java/concepts/interface.html
    And if u want the difference in concept of Interface in Java and other progarmmining languages more detailed look @
    http://en.wikipedia.org/wiki/Interface_%28computer_science%29
    http://en.wikipedia.org/wiki/Interface_%28Java%29

  • Why does Apple require ISBNs when Amazon and B&N don't?

    I'm sure this has been discussed, perhaps someone could point me to an answer.
    Why does Apple require an ISBN when Amazon and B&N's digital stores don't. In many ways this eliminated many individuals or small presses from selling their books on iTunes. Does Apple specifically not want those not alligned with pre-digital publishing to be able to sell books on iTunes? Perhaps there is something I'm missing here.

    Fabini, by the fact that I've uploaded and sold dozens of eBooks on Amazon and B&N without ISBN numbers. They both don't require them for eBooks.
    As per Amazon: “An ISBN (International Standard Book Number) is not required to publish content with Kindle Direct Publishing. Once your content is published on the KDP web site, Amazon.com will assign it a 10-digit ASIN (Amazon Standard Identification Number), which is unique to the eBook, and is an identification number for the Kindle Book on Amazon.com. If you already have an ISBN for your eBook, you’ll be able to enter it during the publishing process. Do *not* use an ISBN for the print book edition.”
    As per barnesandnoble.com's PubIt!: “You do NOT need an ISBN to sell your eBook through PubIt!. If you don’t have an ISBN, just tell us that you don’t have one by answering No when prompted. In that case, Barnes & Noble will assign an internal 13-digit identifier to your title for you when you submit the title to go on sale.”
    Apple is the only of the "big three" eBook distributers that requires an ISBN and that is a bad call and reduces that "democratic" power of eBook publishing. I hope they change the policy soon. Anyone know who the best person to email about this issue would be?

Maybe you are looking for

  • Lightroom 2.1 vs. Photoshop CS4 (x64 & i386)

    I would like to keep both the 32 & 64 bit versions of Photoshop CS4 loaded on my machine BUT be able to EASILY specify which to use as the default "edit in Photoshop" when using Lightroom. Right now Lightroom seems to pick the x64 version of Version

  • Be our December TechNet SSAS Guru. Give the gift of code!

    It's that time of the year again! It's Giving time! A time to think of those less awesome than you. A time to give something back to the community. Think of those happy faces you will make, as they open that article! Remember, "A TechNet Wiki article

  • ANNORMAL WIRELESS SYNC - PLEASE HELP THANKS

    hi my name is Mathew, im a IT Tech Support, i bought yesturday a TRENDnet Wireless Card(PCI): Details of the Wireless Card: TRENDnet TEW-421PC TEW-423PI Details of the Router: Linksys WRT54G v6 My other testing card from linksys(From my laptop) Links

  • Need to find a work around body onload for use with wordpress

    I have this script that uses: <body onload="autoScroll('newsslider','newssection',5,true)"> I use Wordpress and I need to find another way to make this work. I'm not familiar with javascript so I have no idea how to load this script in a different wa

  • File *.xml Reading From Directory

    Hi Friends I want to read only *.xml (only File name not Contain)From Particular Directory and Store into a collection like File fileSel = new File("../../tomcat/webapps/examples/"); From this I can reach upto Directory Now i want to read File Name w