My question might sound funny!!!,but I need an answer

I'am new to java,I would like to know that java doesn't support multiple inheritance,and instead it has a feature of interfaces....which again has methods which don't have thier implementation and constant variables.
Then when I implement this interface in my classes,I have to implement all the methods of the interface.
What is the role played by the interface here...how it replaces the place of multiple inheritance.

First detremine what you need a class to do.
Define an interface which defines the methods which need to be accessable to other packages.
Create a class which implements those methods. It may also have other methods but these are for 'internal' use.
Interfaces help you to define a contract that other packages can use.
In my case, I have mutliple implementation of the same interface which I can change at will (at run time in fact) without change the calling code because the caller only uses refers to the interface.
Interfaces are much more useful which you are writing non-trival sized programs, especially if you are sharing code with other developers.

Similar Messages

  • Sorry might sound dumb but am new to this. I'm getting loads of junk emails. I've noticed my firewall is turned off should I turn it on?

    Sorry might sound dumb but am new to this. I'm getting loads of junk emails. I've noticed my firewall is turned off should I turn it on?

    No, a firewall is for blocking connections based on ports and protocols.  You could block all of your email with it by blocking pop or imap ports, but then you would get no emails at all.
    You already are protected from direct connections initiated from the internet if you have a router.  Don't turn anything else on.  Unsubscribe to any mailing lists that you might be on and filter your junk email in your mail application.

  • Lwill Buy skype number but i need some answers

    lwill Buy skype number but i need some answers
    I will buy denemark number it costs 18$ for 3 months i want to know if i will have any credit to call from it or i will have to buy credit
    Second . I want to know if i called a mobile number in any country like egypt is my skype denemark number will appear
    Third does true call show that it skype number or not

    Hi, Momo223, and welcome to the Community,
    momo223 wrote:
    lwill Buy skype number but i need some answers
    I will buy denemark number it costs 18$ for 3 months i want to know if i will have any credit to call from it or i will have to buy credit
    A Skype Number is a different subscription from purchasing credit; you would have to check on the offerings available if credit is "bundled" with a Skype Number purchase or not.  I do not believe it is.  Credit is credit; there is no "discounted" rate.  Check the Skype subscription website pages to see if purchasing a subscription could discount the cost of a Skype Number.
    momo223 wrote:
    lwill Buy skype number but i need some answers
    Second . I want to know if i called a mobile number in any country like egypt is my skype denemark number will appear
    Third does true call show that it skype number or not
    Your second two questions are related to Caller ID.  More details about how this works can be found in this library of FAQ articles:  https://support.skype.com/en/category/CALLER_IDENTIFICATION/
    Caller ID is tricky; sometimes it works and sometimes the data does not get transmitted as the call is routed from Skype to one or more carriers before the call reaches its destination.  For best success, be sure your Skype Number is set in your on-line account details as your Caller ID.  What ultimately appears for the ID on the call recipient's side ultimately depends upon the carrier.  For more details about this, check posts by Community contributor WD9EWK.
    Since a Skype Number is a fixed line number, there is no indication that the number is a "Skype Number" or a "fixed line" number.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Hi guys, this might sounds stupid but how many employees does apple have?

    hi, how many employees does apple have worldwide? i need the answer for college.
    sorry for my bad english
    greetings maurice

    Currently approximately 60,000 employees at Apple worldwide.
    Hope this Helps

  • I know this might sound stupid but..

    i was told in pc world that all new macs came with windows installed ( i have just baught a brand new iman 27 inch from direct from apple.), but im not sure if ive been mis-informed or what he really meant was that a windows operating system could be installed on a mac /.? i think it may be the latter but im not sure and have no idea how to check...also i need some photo software like ms picture it..the software on the mac doesnt seem to work for me..does anyone know of anything similar as i cant seem to resize, or add  many images to one page for printing  like i could with picture it...or am i doing something wrong ?? thanks

    bevandmartin wrote:
    thanks for the reply..the program i was usung is called microsoft picture it..i just cant seem to get to grips with whats installed with the  mac at the moment..i will get there though as i love using it.
    Browse around the App Store for graphics programs, try some of the free ones out.

  • Flash player crashing, i might know why but i need help.

    After trying everything i read on the internet, it still didn't work. then i came across an article here on this site and this guy mentioned that cs4 was the culprit. i have cs6 on my windwos 7 and it might be crashing flash player but don't know what to do. i haven't updated all the programs yet. anyone else have cs6 with flash crashing?

    uninstall fp, http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html
    then, reinstall, http://get.adobe.com/flashplayer/
    p.s.  watch for unwanted install-alongs

  • This question may sound stupid, but...

    I downloaded jbuilder x enterprise edition, however, it does not recognize classes such as
    javax.ejb.MessageDrivenBean
    javax.ejb.MessageDrivenContext
    javax.jms.Message
    javax.jms.MessageListener
    javax.jms.ObjectMessage
    do I need to include something else apart from the standard library? where to get it ?
    Thanks a lot~~

    Check the manual or the program's settings to make sure that it will import the extended java classes - javax libraries.
    Your project settings might also fall under this pit as well, make sure that the javax libraries are in the complier/library path.

  • This may seem like a silly question but I need it answered plz

    This may seem like a silly question but I am pretty new to
    dreamweaver but I am learning it. The question I have is this. When
    your typing a paragraph and hit enter to make the next line of text
    it goes down 2 spaces. Sometimes I don't want those two spaces. I
    want no space between the two sentences. How do you put one
    sentence below another with no spaces? Thanks in advance. I seems
    to have figured out all the other basic stuff except for this one
    thing lol. Thanks for the help in advance.

    >>>This may seem like a silly question
    There are no silly questions, only stupid answers.
    Alan sorted you, don't be afraid of asking questions.
    Kind Regards
    Paul Dell
    Photography and Web
    www.dellimages.com
    Blog
    www.paul-dell.com
    "ancientone567" <[email protected]> wrote in
    message
    news:fq4is3$mln$[email protected]..
    > This may seem like a silly question but I am pretty new
    to dreamweaver but
    > I am
    > learning it. The question I have is this. When your
    typing a paragraph and
    > hit
    > enter to make the next line of text it goes down 2
    spaces. Sometimes I
    > don't
    > want those two spaces. I want no space between the two
    sentences. How do
    > you
    > put one sentence below another with no spaces? Thanks in
    advance. I seems
    > to
    > have figured out all the other basic stuff except for
    this one thing lol.
    > Thanks for the help in advance.
    >

  • I am currently using iplanet 4.1 on a solaris box.  This is my first time using Iplant so this question my sound trivial but I am not sure how to figure it out.

    I am getting the following error when I try to restart the server. Can anyone help?
    Status:
    [https-verity-dev]: start failed. (2: unknown early startup error)
    [https-verity-dev]: conf_init: Error running init function load-modules: dlopen of /usr/local/netscape/server4/bin/https/lib/libNSServletPlugin.so failed (ld.so.1: ns-httpd: fatal: libjvm.so: open failed: No such file or directory)
    [https-verity-dev]: server exit: status 1
    Error
    An error occurred during startup.
    The server https-verity-dev was not started. Currently our server is down, it is only a dev box but we are currently tryhing to test so any help would be greatly appreciated.
    Thank you

    Hi,
    U did not mention in which version of Solaris u r installing IWS 4.1
    Try these steps:
    (1)Have u chosen the option to install jdk with IWS setup or u manually added the classpath after installation?
    (2)Make sure you have the latest operating system patches installed. You can download them from Sun's web site.
    (3)It may also be that the environment variable LD_LIBRARY_PATH isn't set. It should probably be set to "/usr/lib:/usr/ucblib". Make sure it is set correctly, and try the installation again.
    then try to start the server again
    regards
    T.Raghulan
    [email protected]

  • Stupid question, but i NEED an answer

    can the ipod touch get internet anywhere (like the iphone) or only wi-fi
    please answer cause im thinking about buying one

    Only at wifi spots.
    The iPhone uses a phone network that is essentially everywhere.
    FWIW, Starbucks has dumped T-Mobile and are going with AT&T and will offer a limited free wifi at all it's locations.

  • Sorry if question is already asked, but I need help.

    I use an iPhone 4S, iPad2 and Macbook Pro privatly and windows laptop with Outlook 7 for work. I can not receive the information from my iPhone, which gets the info from business server on iCloud. I can get appointments etc from Calender to my iPhone. I do not know a lot about computing so can somebody help me please step by step. Thank in advance.

    Read through this : http://ipod.about.com/od/itunesproblems/ss/report_problem.htm

  • Feel Very Stupid Asking This....But I Need An Answer

    So, I've had my HP m6 for a good while (years) and just the other day, I was attempting to play a game on it...only for it to crash upon start up.  After researching the issue, many people suggested updating the graphic drivers....and so I went on to research how to go about doing that.
    I found my chip, it's an Intel...so I went to the Intel site, found my chip, and found a whole bunch of new(er) driver updates ready to be downloaded.  I figured this would be easy...but it seems I can't download their updates...because HP has a lock on being able to do that.  The other option was to come here and download the updates directly from the HP site...but this is where my main issue comes from.  The last update that HP released for my chip and driver was back in 2012...while Intel has updates for my chip from May of 2014. 
    I really don't understand why this is...the way it is.  But if someone could help me out...just give me a flat answer as to whether or not I have to buy a new computer just to play a game, or if there's some work around to where I can get the update I need in order to play...for free?

    Hi Dilaudid281,
    Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your HP ENVY m6 Notebook and issue with graphic updates.  The HP Support Assistant will help with drivers and software that are recommended for your HP Notebook and the hardware that is installed. Most driver sites do recommend to use the Manufacture's drivers. I would be happy to assist if needed as there are many models of ENVY m6 notebooks I would need the model number. How Do I Find My Model Number or Product Number?
    Please respond with which Operating System you are running:
    Which Windows Operating System am I running?
    Please let me know.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • HT1420 I forgot my my security questions this is very frustrating I need the answers reset.

    I just brought the iPhone 5 and I'm trying to down load new music on my phone. It ask me security question and I forgot the answers I need the security questions reset. Thank you

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • When i make call from iphone,loudspeaker is being enabled automatically and not able to  hear any sound ..So Please need Full Answer?

    When i make call from iphone,loudspeaker is being enabled automatically and not able to  hear any sound ..

    reset all settings
    settings-general-reset-reset all settings
    now reconnect to wifi
    settings- wifi- click network name- enter password - join
    if issue persists back up and restore as new via iTunes
    Peace, Clyde

  • Off Topic, But I Need An Answer (About Buying an iBook G3)

    I was looking around on eBay for different stuff and I came across several iBook G3's (the colored ones). I know that technology has changed a lot, but I think it would be cool to have one just to fool around on and show off (it would turn heads).
    I found a user-upgraded model with the following specs:
    Processor: PowerPC 366 MHz
    RAM: 320 mb
    Hard Drive: 20 gig
    12" screen
    Mac OS X Panther
    Include Microsoft Office X
    I wouldn't pay more than $200 total (with shipping) for something like this.
    Would that setup be able to surf the internet, perform basic word processing, play iTunes music, and use MSN Messenger relativly well? Or is it simply a terrible idea to buy something like this off eBay?

    You most likely wont find a colored iBook with a 20GB drive, the shipping hard drives for the models had 4, 6 or 10GB drives.
    Then again, I see you did, good luck at getting it for less than $200.
    Message was edited by: PB PM

Maybe you are looking for

  • How I revived my MBA after 10.6.3 update: Combo Updater to the rescue!

    Hi, just wanted to let everyone know how I managed to revive my MBA when it would no longer boot after a failed update to 10.6.3 using Software Update. I want to provide as many details as possible, so this will be looooong. *The problem:* Late in th

  • Quicktime stopped playing audio online

    I have a powerpoint lesson online and there is audio attached that plays through quicktime but it has stopped working and instead of an audio player there is not just a small quicktime icon in its place. How do I fix it so it will play again? This is

  • Vews creation problem in matmas

    iam creating materials in r3 system by using xi iam sending infor mation through xi to r3 system . to restrict views in r3 iam sending values to PSTAT field like BDEGLPQVACKFS like thisiam sending inthis string each char is indikating one view . my p

  • Solaris TCP settings

    Hi all, I remember there was a recommendation for the Solaris TCP settings like tcp_time_wait_interval and tcp_conn_req_max_q. I can't seem to find it now. Is it still relevant? If so where? I have heard that it is nolonger required for WLS5.1. Is th

  • Safari dont want to open only one (my own) website, the post connected to this site cant download any emails

    Sorry for my english. I have my own website (can tell you the name, if you ask). In December after I have installed 5.0.1 my website and the post doesnt work via 3g, gprs. With wi-fi everething is ok. In opera via 3g, gprs, wi-fi everething is ok. th