Does using 'this.' make _any_ difference to method calls?

If I'm calling a local method, for example:
this.doStuff();is it functionally ever under any circumstances whatsoever different to simply doing:
doStuff();I have quite a vivid memory from a few years ago of a reasonably complex class hierarchy in which I found there to be different behaviour when specifying 'this.' to not specifying it. Was this some sort of hallucination?
See this has caused me to be paranoid about using 'this.' everywhere I call a local method. Someone asked me why I did it and explained with the story above. However I can't for the life of me re-create the situation.
Edited by: pete-woods on May 2, 2008 3:51 AM

There's no difference between calling this.methodName() and calling methodName() directly. as others said, just for clarity.
however, the only time i almost always use "this" is when passing a constructor args that have the same name as the instance variables in that class in which case i use "this" to avoid naming confusion.
example:
public MyConstructor(int x, int y){
this.x = x;
this.y = y;
above the this.x is the instance variable and the single x by itself is the arg.

Similar Messages

  • When extending my wifi network using an Extreme as my main and an Express to extend.. does it help to make sure that both devices are on the same channel or does it even make a difference if they are on different channels?

    when extending my wifi network using an Extreme as my main and an Express to extend.. does it help to make sure that both devices are on the same channel or does it even make a difference if they are on different channels?

    Have you even tried the process in which i have described in my previous post?
    Yes, many times.  If you are setup to "extend a wireless network, the screen looks like this:
    If you click the Wireless Options button, the screen looks like this:
    Where is it on this screen that you see a setting to adjust the channel?  It sounds like you are confusing "create a wireless network"....which does allow you to adjust channels.....with "exend a wireless network" which does not.
    Normally, when you extend a wireless network, AirPort Utility used to always assign the same channel to the extending device. That is no longer the case. It might be the same, or it might be different.  You have no control over this, so you have to accept what AirPort Utility thinks is best.

  • TS3408 why will some websites which loaded fine before now not load - when other favourites load fine, and new searches are fine?  This only affects 2 websites, both of which were bookmarked.  I have removed them as bookmarks and this makes no difference.

    why will some websites which loaded fine before now not load - when other favourites load fine, and new searches are fine?  This only affects 2 websites, both of which were bookmarked.  I have removed them as bookmarks and this makes no difference.

    From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Does upping bitrate make a difference? Or vice versa (lowering)?

    If you don't know what I'm talking about, I changed my import settings on preferences to using MP3 Encoder to a setting of 192 kbps. It changes the feature when you right click a song, instead of being 'Create AAC Version', it is now 'Create MP3 Version'. This way I convert my lower bit rate songs to a higher 192 kbps.
    Does it make a difference in the quality wise of the song? I know it changes the size which is a good thing if you lower it.

    Or vice versa (lowering)?
    And to answer the second part of the question:  Yes, if you start with 192 kb/s AAC or MP3 file, and convert to a lower bitrate, the new file will have reduced audio quality. 
    As diesel notes, the audio quality degradation incurred in a lossy compression cannot later be recovered by converting back to a higher bitrate.

  • I am unable to install acrobat pro on my windows 8.1 PC.  I have disabled the fire wall and this makes no difference. The install commences, the install screen flashes up then disappears...

    I have also disabled the anti virus software (ESET)...

    Hi malcolml33267653,
    Where did you downloaded the installer from?
    Does the installation throws any exception error or any error code?
    I would recommend you to use Acrobat Cleaner tool on your system( Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs) and try installing acrobat using this Link : https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    Regards,
    Rahul

  • Does Mackeeper really make a difference on your mac

    Hi, does mackeeper make a diffrence on your mac will it make it fast, protect from viruses, and protect your data. I really need to know, Thanks

    Oh, it'll make a difference, but not in a good way. See below.
    https://discussions.apple.com/docs/DOC-3036
    Stedman

  • Does installation language make a difference?

    Hello all,
    A client has request a new server with Server 2012R2 and SQL 2008R2.
    I have installed it all in English, and they have now said that they have an application that will only run on a FRENCH windows, and only on a FRENCH SQL.
    Can this be correct?
    I thought that the kernel was all in the same language, and that the SQL database engine was also not language specific.
    Thanks for your comments
    Nicholas Cross

    Good day nebc100
    I will try to clear the issue :-)
    I will start from the end: There is no problem and you can make the configuration that you need at any time :-)
    I Use more languages which are much more complex (Hebrew, which is written from right to left and it is really different from europeanen languages), and belive me that I alway need to do those actions :-)
    Now for the explanations:
    * There is no SQL Server french or Hebrew or English and the same about windows server 2012r2 (actually from windows server 2008 it start if I remember correctly). You can add languages and remove them at any time (not need to restart even in 2012r2).
    To add a language in windows 2012r2
    - use the search and write: language
    - In the result you will get "add language" click this and add any language that you want.
    - move the language that you want as default up to top. This is important! since this is the default language for all applications (non-Unicode programs) including the SQL Server (if you install the SQL Server after this setting, then this will be the default
    setting for SQL).
    Working with SQL Server and language
    SQL Server supports all languages that are supported by Windows operating systems!
    You can use this query to get all the language that SQL Server support:
    SELECT msg.language_id, lang.langid, alias
    FROM
    sys.messages AS msg
    JOIN syslanguages AS lang ON lang.msglangid = msg.language_id
    GROUP BY msg.language_id, lang.langid, alias
    You can use this query to change the SQL Server language:
    EXEC sp_configure "default language", <langid` that you want to set from previuse query>
    RECONFIGURE WITH OVERRIDE;
    You can use any language that you want for the SQL Server and yet work with any other language in the database as long as you work with UNICODE.
    The magic word is Collations!
    You can read more in this link: http://msdn.microsoft.com/en-us/library/ms144260(v=sql.105).aspx
    ** Every time that I open a new virtual machine in Azure, which is based on build-in template, I need to do those configuration since the default is English and Hebrew is not installed, and the SQL Server is set to English an collation is Latin
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • My ipad has suddenly decided not to connect to the internet. My WiFi signal is strong. My PC is connected ok through the same WiFi signal. I have tried pressing the home and off buttons to get the apple logo but this makes no difference

    My ipad2 has suddenly decided not to connect to the internet either through Safari or email. My WiFi signal is strong and all other devices in my house are connecting ok. I have tried pressing the home and off buttons together to get the Apple Logo but this has not changed anything, still cannot connect. "Safari cannot open the page because your ipad is not connected to the internet"

    I have done this and no difference
    I have just realised what has caused the problem.
    Yesterday I fitted an additional Homeplug with built in wireless N adapter ( I alreday have another type fitted from my main router position) The wireless system to my ipad is obviously "confused" . Having now removed the second homeplug and reset my ipad all is now ok

  • My older classic 160GB shows up in iTunes 11 but will not sync. I have a new PC and transferred all my iTunes to it. Old was XP - new is Windows 7. Does this make a difference?

    My older classic (6 yrs or more) will not sync even though is recognized in iTunes 11. I have a new computer with Windows 7 vs my old one that had XP. Does this matter? I had my data transferred and redownloaded what did not transfer but I cannot get the new items purchased and downloaded to sync with my iPod. The data on the iPod has not changed one bit even though it shows as syncing. What do I do? The iPod works perfectly otherwise.

    Thanks planb77. Your instructions worked but I had to do a little more than you stated. I did not realize that transferring files to a new computer was not enough. When the iPod synced I was told I needed to "authorize" my new computer to get my iTunes purchases to sync to the iPod. So after the initial sync, I ejected and disconnected the iPod, went into the iTunes store, set up "home sharing" and then authorized the new computer. When that was done I reconnected the iPod and was able to sync all my books and music. The only thing I couldn't do was rename the iPod as iTunes never asked me to. Is there a way to rename it after it has been set by iTunes as "owner's iPod"?

  • HT4623 Do not have the software update area in my settings! How do I update iPod without that? Btw I have a 3G iPod! Does this make a difference? How do io do the update?

    Do not have software updates section in settings! How do I update my iPod without that?

    A 3G can go to iOS 5.1.1 and requires iTunes version 10.5 or later. If you have a Mac that requires OSX 110,5,8 or later
    Are you sure you really do not have a 2G iPod? Those can only go to 4.2.1
    Identifying iPod models
    iPod touch (3rd generation)
    iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • HT1430 I want to reset my email password. When I go to settings, then mail the section on accounts remains grey rather than bold & so I cannot enter in to it to reset the password. I have switched my ipad off & on & this makes no difference... any ideas?

    Hi
    I want to reset my email password.
    When I go to settings & then mail the account I want to change is in grey & so won't respond.
    Any idea how I make it change to bold so I can go into it & change my password?
    E

    Hey Esmerelda17,
    Thanks for the question. I understand you are wishing to change the stored password for an email account on your iPad 2.
    If you are unable to edit this field, you may want to remove and re-add the account. Please make sure to back up all of your information before doing so. Also Note: if this is an external email provider, you'll need to reset your password using their website, then update your iPad to reflect the new password.
    iOS: Setting up an email account
    http://support.apple.com/kb/HT4810
    Thanks,
    Matt M.

  • GTK apps in Qt Environment -- Does it really make a difference?

    Whenever I read around about running GTK apps in KDE, I get a lot of horror stories about how needing to load GTK libraries in the Qt environment will degrade my system performance and bog down my desktop experience. After spending a lot of time in two pretty popular GTK apps (Firefox & Gimp), and monitoring my desktop performance, I've certainly not found anything noticable (other than that they look ugly as sin). Furthermore, I keep a system monitoring widget on my desktop, and it doesn't seem to make a lick of difference on my system resources. Are all the warnings about running GTK in Qt simply horror stories? Has anyone actually noticed a difference from running GTK apps in Qt (or the other way around for that matter)?

    axel668 wrote:no, I've always used GTK apps in KDE (Firefox, Thunderbird, LibreOffice, ...) and never had problems. And there's a great article in the wiki about theming: https://wiki.archlinux.org/index.php/Un … plications
    That's a great little wiki page which I just visited, used, and now love. Thank you for sharing!

  • Does faster memory make a difference?

    hi,
    I'm currently building my new system (middle of the road, around 1500€, mainly for AE CS5) and I have a specific question regarding memory:
    does it make sense to invest in more expensive/faster RAM (1600MHz instead of 1333?)?
    what I had in mind until now were 24Gb (2x DIMM DDR3 12GB PC3-10667 CL9 Kingston Value Kits). now I heard that the kingston value kits might be more unrelieable and slower than brands like ocz or g.skill and I'm thinking about getting for instance 2 x DIMM DDR3 12GB PC3-12800 CL8, OCZ Gold Kits.
    the difference in cost is quite a bit, so do you think it is worth it and one is going to notice a significant difference in speed?
    what other RAM kits could you suggest?
    thanks, eva

    I can't directly answer, but some results viewing may help
    Premiere Pro CS5 Benchmark http://ppbm5.com/
    Premiere Pro CS4 Benchmark http://ppbm4.com/

  • Does using threads make programs faster?

    For example, say your program has to execute 10 fairly processor-intensive operations. Would the program run in exactly the same time when each operation is processed one-after-the-other as it would when each operation is run "at the same time" in their own threads? In other words, when the 10 operations are all running at once, do they each take 10 times longer, as the processor has to divide it's attention between them all? The computer is doing the exact same amount of "work" after all.
    And if the answer is that they would run faster when they all run in their own threads (due to multi-processors or some other special "magic" tricks) then I have a couple of more questions ... i) is it a significant speed-up? and ii) is it bad programming practice to make things run in their own threads even though they don't really need to (i.e. there's no logical reason for them to run at the same time, but it won't hurt either), just to improve performance?
    I hope it's clear what I'm getting at.

    GallahJava wrote:
    What's a CPU-bound task? It means one that has little or no I/O, relative to the amount of work to be done by the CPU.
    And why only use 1 thread per core if running 10 threads will be 5-7x faster on a dual-core system?It won't be that much faster for CPU-bound tasks. If you're just crunching numbers, then you won't get any gain by having more threads than CPUs. Imagine you have 10 accountants (threads), and only 2 calculators (CPUs) (and assume accountants are not smart enough to do math in their head). Will your books get balanced any faster than if you had just 2 accountants--one for each calculator? No, they won't. In fact, the total time will be slower, as you waste more time switching off between accountants.
    Do I need to count the "in-built java system threads" that are running too?In general I'd say no. If you have 2 CPUs, and one Java administrative thread, the JVM thread will likely need only a tiny fraction of the CPU that your worker threads will, so you'd create two worker threads. Most of the time, both of them will be able to be running simultaneously (assuming the OS scheduler will give them time simultaneously).

  • Does i7 processor make a difference over a fast i5 for LR?  (Buying an iMac)

    As I understand it, unless an application uses hyper threading, the i7 won't really make a performance difference.  We're using LR 5.

    As I understand it, unless an application uses hyper threading, the i7 won't really make a performance difference.  We're using LR 5.

Maybe you are looking for

  • When i open itunes it gives me an option for itunes U and podcasts download

    Hello, I just purchased an Iphone 5.  When I open up Itunes, it gives me a screen that has two tabs at the bottom.   One tab is for Itunes U and another is for Podcasts.  When I click on either tab, it asks me to either download or open.  I downloade

  • Smartform upload problem (within same Version)

    i have download smartforms from 4.7 first and than uploading it in same 4.7 but error occurs as below: first:  "A serious error has occurred The transaction had to be terminated". than second: Internal error (illegal structure of data storage) Messag

  • Ugh what is wrong with my loop????

    hi all, I have this code that is not operating correctly and I don't know why cuz it should be straight forward:          f := 1;                  while f <= r1.flat_format loop                insert into foo_plantings_flat (planting_id,flat_id,flat_

  • Re: Droid SD & Phone Storage - Factory Data Reset?

    How do you stop your phone from sending a single text message multiple times until you have to turn off your phone!?!!!! This should not happen.  And a week ago I had to go down to the local Verizon store to fix duplicate contacts from going to even

  • Longer than 20 seconds for slideshow

    I am trying to use AppleTV hooked up to a 20" monitor as a digital picture frame. So far everything works well (pics look great!), EXCEPT... the maximum time for each photo in slideshow or screen saver mode is 20 seconds. Does anyone know of a way to