Can anybody tell me what is the problem in the code below?

package first;
class A {
A a;
A(){}
A(A aa){
this.a=aa;
String name;
void setname(String a){
this.name=a;
void bar(){
dostuff(a);
void dostuff(A a1){
a.setname("vahvah");
//a1=new A();
public static void main(String args[]){
A a2=new A();
A a1=new A(a2);
a2.bar();
System.out.println("name= "+a2.name);
}

class A {
A a;
String name;
A(){}
A(A a){
    this.a=a;
void setname(String a){
    this.name=a;
static void dostuff(A a1){
    a1.setname("vahvah");
//a1=new A();
String getName()
    return name;
public static void main(String args[]){
    A a2=new A();
    A a1=new A(a2);
    dostuff(a1);
    System.out.println("name= " + a1.getName());
    System.out.println("name= " + a2.getName());
    dostuff(a2);
    System.out.println("name= " + a1.getName());
    System.out.println("name= " + a2.getName());
}

Similar Messages

  • Recently i noticed that the sound is not comming from my i phone 4s so i needed to restore it as it was earlier. So i decided to do it by restoring it without itunes. Now it is taking too long to restore it. Can anybody Tell me what problem i am facing???

    recently i noticed that the sound is not comming from my i phone 4s so i needed to restore it as it was earlier. So i decided to do it by restoring it without itunes. Now it is taking too long to restore it, it is still going on since 3 hours . Can anybody Tell me what problem i am facing???

    Which software did you use to restore it, if you didn't go with iTunes?

  • MBA hardware test error code: 4MEM/1/40000000:0x79flae98. Can anybody tell me what this means and how to fix the problem if ever possible? Thanks!

    As mentioned in the subject line: my Mid 2009 MBA freezes frequently. The hardware test provides the error code.
    It sounds like a failed RAM but it still works when booted.
    Can anybody tell me what was wrong with this MBA and what else can I do to save it?
    Thanks!

    Welcome to the Apple Support Communities
    That's a RAM issue. If you want, you can still use your Mac until it gets damaged, but that message tells something bad with your RAM, and what it's worse, the RAM in the MacBook Air is soldered onto the logic board, so if you take the Mac to an Apple Store or reseller to get it repaired, the whole logic board will have to be replaced, making this repair so expensive

  • Updating iphone 4 to iOS 5 - while doing the Backup I receive an error message no 402636788 - backup has failed. Can anybody tell me what this means or how I can fix this?

    Updating iphone 4 to iOS 5 - while doing the Backup I receive an error message no 402636788 - backup has failed. Can anybody tell me what this means or how I can fix this?
    I am working on a Win 7 Machine and I have disabled all Firewall and Antivirus Tasks as this caused problems on an other update.

    Well - I synced before - that was successful - but I am a bit scared to ignore this error and just to continue? You think I should ignore that?

  • When i try to start itunes i get a message saying that the MSVCR80.dll file is missing and to reinstall itunes.  When I try to reinstall itunes it tells me that I have an Error 7 (windows error 126).  Can anybody tell me what this means?  Thanks

    When i try to start itunes i get a message saying that the MSVCR80.dll file is missing and to reinstall itunes.  When I try to reinstall itunes it tells me that I have an Error 7 (windows error 126).  Can anybody tell me what this means?  Thanks

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • HI, as of today can't use Gmail with Apple Mail anymore. neither on Macbook Pro nor on ipad. But is still works on my iphone, guess because I didn't update on the iphone. So can anybody tell me what happened and how I can fix it?

    Hi,
    as of today I can't access Gmail via Apple Mail anymore. Last night I updated on Macbook Pro and ipad, and both don't allow me to access gmail anymore. Gmail still  works on my iphone, I guess, because I didn't update that one.
    Can anybody tell me what happended and how to fix it?
    Thx
    Chris

    ChrisK21,
    Make sure your settings match up with this:
    http://support.google.com/mail/bin/answer.py?hl=en&answer=180188
    if wouldn't hurt to delete the account entirely and just re-set it up in preferences.

  • HT201209 Have redeemed a $20 iTunes gift card and at top shows $20 but when I go to purchase anything it is asking to use credut card? CAn anybody tell me what I need to do to make the cost come off my gift card redeemtion and not my credit card??

    Have redeemed a $20 iTunes gift card and at top shows $20 but when I go to purchase anything it is asking to use credut card? CAn anybody tell me what I need to do to make the cost come off my gift card redeemtion and not my credit card??

    Hi Kim ...
    Might not just be the security code > iTunes Store: My credit card's security code or zip code does not match my bank's records
    Apple "verifies" your billing credentials with every transaction.
    what does my debit card have to do with my having a redeemed ITunes card
    If the total purchase price of the media including any applicable taxes or fees exceeds the balance of the redeemed card, then the difference is charged to your debit or credit card account.
    iTUNES STORE - TERMS AND CONDITIONS  <  re taxes and fees
    You don't have to have a credit or debit account setup >  Create an iTunes App Store account without a credit card

  • My ipad mini keeps on crashing when i play games (eversince i updated it)...can anybody tell me what i need to do to prevent this?

    My ipad mini keeps on crashing when i play games (eversince i updated it)...can anybody tell me what i need to do to prevent this?

    _Jet wrote:
    My ipad mini keeps on crashing when i play games (eversince i updated it)...can anybody tell me what i need to do to prevent this?
    Try this First...
    Close All Open Apps...  Sign Out of your Account,,,, Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    If no joy...
    Connect to iTunes on the computer you usually Sync with and “ Restore “...
    http://support.apple.com/kb/HT1414
    Note:
    Also consider Deleting any Apps you have Purchased / Downloaded but you now never use..

  • Can anybody tell me what they think a fair replacement for insurance purposes would be for an old 2nd generation nano mini ipod?

    For insurance purposes, can anybody tell me what they think a fair replacement would be for the old 2nd generation 8GB nano mini ipod would be?

    Alex,
    I would suggest looking around on eBay to see what others are selling 2G 8 GB iPod Minis for.  Anything within the range of what you find there should work.
    B-rock

  • My ipod had a full battery but when i took it off charge and put my earphones in it it went completley dead and hasnt come back on. Can anybody tell me what is wrong and how to fix it?

    my ipod had a full battery but when i took it off charge and put my earphones in it, it went completly dead and hasnt come back on.  Can anybody tell me what is wrong and how to fix it?

    Try here to fix it.  I doubt that you will ever find out why it did that.
    iPod touch: Hardware troubleshooting

  • CAN ANYBODY TELL ME WHAT WRONG WITH THIS RSS FEED IT WONT WORK

    CAN ANYBONE TELL ME WHATS WRONG WITH THIS FEED BECAUSE IT WONT WORK AND ALSO HOW DO I GET A LINK TO THE PODCAST RSS FEED FOR THE SUBMIT PODCAST PAGE ON ITUNES,
    ANY HELP WILL BE MUCH APRECIATED
    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    <channel>
    <title>DJ Hybrid Coventry Drum n Bass Podcast</title>
    <link>http://www.djhybridcoventry.com/podcast.htm</link>
    <language>en-us</language>
    <copyright>℗ & © 2007 DJ Hybridb& </copyright>
    <itunes:subtitle>DJ Hybrid Drum n Bass Podcast brings you all the latest and greatest from the Drum n Bass scene, updated every two weeks</itunes:subtitle>
    <itunes:author>DJ Hybrid</itunes:author>
    <itunes:summary>The DJ Hybrid Coventry Drum n Bass Podcast will showcase a selection of the latest and greatest tunes that are getting rinsed on the scene, mixed down with sharp cuts and nasty double drops by Dj Hybrid the podcast will also feature other DJ's and Mc's on different shows. Updated every two weeks this is guarenteed to be an original style of drum n bass mashup, for more info check www.djhybridcoventry.com</itunes:summary>
    <description>DJ Hybrid Drum n Bass Podcast brings you all the latest and greatest from the Drum n Bass scene, updated every two weeks</description>
    <itunes:owner>
    <itunes:name>DJ Hybrid</itunes:name>
    <itunes:email>[email protected]</itunes:email>
    </itunes:owner>
    <itunes:image href="http://i100.photobucket.com/albums/m8/djhybrid/PODCASTLOGOBLUE.jpg" />
    <itunes:category text="Music">
    <itunes:category text="Drum n Bass"/>
    </itunes:category>
    <itunes:category text="music"/>
    <item>
    <title>DJ Hybrid Podcast - 1st Show 03/6/07</title>
    <itunes:author>DJ Hybrid</itunes:author>
    <itunes:subtitle>The first show of the new drum n bass podcast from DJ Hybrid</itunes:subtitle>
    <itunes:summary>Welcome to the 1st show from DJ Hybrid because its the first show im goin to play what tunes i think represent me as a DJ aswell as my favourite drum n bass tunes at the moment for tracklistings check www.djhybridcoventry.com</itunes:summary>
    <enclosure url="http://fs06n5.sendspace.com/dl/603942da730253766c5157920e810d3e/46771dd931 3f824d/v3adp4/DJ%20Hybrid%20Podcast%201%20%20-%20%203rd%20June%202007.mp3" length="8727310" type="audio/x-m4a" />
    <guid>http://fs06n5.sendspace.com/dl/603942da730253766c5157920e810d3e/46771dd9313f824d /v3adp4/DJ%20Hybrid%20Podcast%201%20%20-%20%203rd%20June%202007.mp3</guid>
    <pubDate>Sun, 03 Jun 2007 20:00:00 GMT</pubDate>
    <itunes:duration>53:36</itunes:duration>
    <itunes:keywords>DJ, Hybrid, Podcast, Drum, Bass, Jungle, Coventry, Double Drop, Latest, Tunes, Vinyl, Liquid, Rave, Reggae, Urban</itunes:keywords>
    </item>
    </channel>
    </rss>

    First...Stop screaming. It's rude.
    Next...there are some minor problems with your feed. "Drum n Bass" is not a iTunes category. Stick with <itunes:category text="Music" /> remove the others.
    Not required, but recommend to add an <itunes:explicit> tag with a Y or N depending on what suits your podcast. The iTunes staff will remove your feed if it isn't tagged properly.
    MP3 audio files should have a type="audio/mpeg".
    Keep the Podcast spec handy...the categories and other info listed in the spec.
    Test your feed with http://www.feedvalidator.org it will point out problems with your feed.
    The bigger problems stem from your podcast enclosure, specifically the URL.
    The URL you have listed to the podcast mp3 apparently has changed so iTunes can't download the file. It also appears that you are using a "free download" kind of service that uses web page based downloads, which might account for why the URL keeps changing. Don't think that iTunes will be able to properly download the file.
    Erik

  • HELP!! Can anyone tell me what causes this problem?

    I will paste a link below to a screen grab I took of my desktop. I've never seen this before. Could you please tell me what this could be? The best way I could describe it is to describe it as warping effect on various windows.
    This has occurred when using photoshop, after effect, illustrator, the OS. Basically I've seen it occur on just about every type of browse window viewable on the Mac.
    I reformatted the mac and it still occurs.
    I am using a MacPro 2 x 3 GHz Quad Core with 16 GB of RAM, and an NVIDIA Quadro FX 4500. I have an internal 750 GB HD for the OS and 4x750 GB internal RAID for storage. (I do a lot of video work.)
    Here's the link:
    http://i87.photobucket.com/albums/k142/semilion/02-7.jpg
    Thanks,
    Daniel
    PS> Even if you have no clue what this is, can you please let me know if you have seen it before or not?? I am completely lost. Help me Obi Wan Kenobi... you're my only hope.

    Afraid I haven't seen that before. The only thing I could suggest is to boot from the 1st Install disk and run the hardware test. I would wonder about the video card. You might also post in the MacPro forum. I just got MY MacPro today, and the MacPro Forum is where I would go:
    http://discussions.apple.com/category.jspa?categoryID=194
    The only other thing I can think of is to launch Console from the Utilities folder and see if any errors are being reported.
    Francine
    Francine
    Schwieder

  • HELP!! Can anyone tell me what causes this problem? UPDATED!!

    I will paste a link below to a screen grab I took of my desktop. I've never seen this before. Could you please tell me what this could be? The best way I could describe it is to describe it as warping effect on various windows.
    This has occurred when using photoshop, after effect, illustrator, the OS. Basically I've seen it occur on just about every type of browse window viewable on the Mac.
    I reformatted the mac and it still occurs.
    I am using a MacPro 2 x 3 GHz Quad Core with 16 GB of RAM, and an NVIDIA Quadro FX 4500. I have an internal 750 GB HD for the OS and 4x750 GB internal RAID for storage. (I do a lot of video work.)
    Here's the link:
    http://i87.photobucket.com/albums/k142/semilion/Picture-2.jpg
    Thanks,
    Daniel
    PS> Even if you have no clue what this is, can you please let me know if you have seen it before or not?? I am completely lost. Help me Obi Wan Kenobi... you're my only hope.

    Afraid I haven't seen that before. The only thing I could suggest is to boot from the 1st Install disk and run the hardware test. I would wonder about the video card. You might also post in the MacPro forum. I just got MY MacPro today, and the MacPro Forum is where I would go:
    http://discussions.apple.com/category.jspa?categoryID=194
    The only other thing I can think of is to launch Console from the Utilities folder and see if any errors are being reported.
    Francine
    Francine
    Schwieder

  • Can anyone tell me what this string is in the server permissions?

    Can anyone tell me what the character sting is third from the top?
    This is taken from the server app < select the server < storage < then edit permissions.
    I feel like this is something simple, but all of my searches have turned up nothing.
    Any insight would be greatly appreciated,
    -Tom

    I have recently deleted a user.
    Can I remove them from the ACL with no effect to the system?
    Is there a more efficient way to do that rather then by each individual folder and file?
    Thank you,
    -Tom

  • Guys my macbook pro retina display reboots automatically after updating the maverick os x. can anybody tell me what the problem is?

    After uppadating mavericks os x last 3hrs on my macbook pro with retina (15 inch, mid 2012), it has rebooted automatically twice in a hour. it is really annoying. what seems to be the problem. can anyone help me out. waiting for your help guys. apple is really ******* us up now.

    If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select the most recent panic report (with a name that begins with "Kernel" and ends in ".panic") under the heading System Diagnostic Reports on the left. If you don't see that heading, select  
    View ▹ Show Log List
    from the menu bar. Post the entire contents of the report — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post any other kind of diagnostic report, such as a hang report.

  • Today morning i turned my macbook on and i saw all the black area of screen has green lines and dots all over , can anybody tell me what causes it , and how to fix it, please anyone can help

    plz help with my graphic problem as i noticed tthis morning all the black area of the screen turned into green, anyone help me? will be apriciated,
    thanks in advance

    clintonfrombirmingham wrote:
    Which model do you have? If a mid-2010 15", there are known problems with the GPU and the logic board will be replaced free.
    Clinton
    The Mid 2010 15-inch MacBook Pro problems are related to kernel panics, so the GPU is still working. In the case of the OP, the GPU has stopped working completely, so his/her problem doesn't belong to the kernel panic problem, so the OP may have to pay. I may be wrong.
    Also, the 10.8.4 update won't help as this is a hardware problem, but it's always good to keep OS X updated

Maybe you are looking for

  • Ipod Mini battery (1st generation)

    I bought my Ipod mini in february 2005 and since 4 months the battery no longer works. It has started to turning itself off 1 or 2 minutes after i opened it even when fully charged. I tried to reset it but it would work for a few minutes more. I down

  • SSO Authentication for more than one application in Application Express

    Hello, I recently got a single application working with SSO integration for Application Express 2.2. Now I would like to create multiple applications within the same workspace, which all use SSO authentication. I tried both copying the working one fr

  • Problem In crystal Report

    When i am trying to Change the crystal report it Gives Me error: The document could not be saved in C:\Users\dell\AppData\local\tempemp\{3736984F-FC52-4AF5-94C2-4988BCC66A29}.rpt .It has been saved in C:\Users\dell\Appdata\local\temp\~cxd{D08459E5-FB

  • Colors are off

    I've used previous Photoshop versions and recently upgraded to Photoshop CS5 (I've used the same Dell monitor with previous versions and it looked just fine before). For some reason the colors I use in Photoshop CS5's work-space are off. For example,

  • Smartforms with text type DOKU

    Hi, I would like to display a text in a Smartforms. This text is a standard include from the QM module. The name is QM_QCERT_GENERAL_TEXT. Inside this text, when I display the content in the transaction SO10, there is the code : INCLUDE QM_QCERT_GENE