What are these and what are they useful for?: and

I have seen these symbols being used in Java: << and >>, what are they and what do they do?
Thank you.

As DrQuincy asks how is this of use over multiplying
and dividing?In your processor there are often different instructions for shifting, multiplying, and deleteing. Typically the shifting instructions take less time to execute and so using the shifting operator will be faster than multiplying. This assumes the compiler doesn't recognize the situation and optimize it out though.
The >>,<<,>>>, &,|,and ^ operators are mainly useful when you need to deal with individual bits of data. For instance if you are talking to another system (thats not java) that uses a different method of storing numbers (little endian/big endian etc.), or doing something such as creating parity data for error correction. There are lots of things to do, but most a low level and its rare when you need to use them.

Similar Messages

  • What are the frequencies all versions of the iPhone 6 and what are they used for (e.g. GSM, 3G, LTE, WIFI, Bluetooth,etc...) provided with channel numbers per frequency

    what are the frequencies all versions of the iPhone 6 and what are they used for (e.g. GSM, 3G, LTE, WIFI, Bluetooth,etc...) provided with channel numbers per frequency.

    Click here

  • What are Wrapper classes and what are they used for ?

    What are Wrappter classes and what are they used for ?..Also, any examples would be great to understand this concept

    Wrapper classes are used to enclose primitive data
    types so that they can be used in instances where an
    object is required. For example, if you want to add an
    integer to an ArrayList, you can't use this:java.util.List al = new ArrayList();
    int i=123;
    al.add(i);because the ArrayList expects data of type object. In
    order to all the integer to the ArrayList, you must wrap
    it in the Integer wrapper class. This works:java.util.List al = new ArrayList();
    int i=123;
    al.add(new Integer(i));Hope that helps.
    Mark

  • TS3159 Some songs that I've bought on iTunes won't play on my iPhone 3GS even though they used to and they will still play on iTunes.  Anyone know what I can do to get these songs to play on my iPhone again?

    Some songs that I've bought on iTunes won't play on my iPhone 3GS even though they used to and they will still play on iTunes.  Anyone know what I can do to get these songs to play on my iPhone again?  Please help!

    No, I haven't figured it out.  And no one from Apple has contacted me to help.  Very frustrating.  Sure makes me want to not buy music on iTunes and just buy CD's.
    Do you have a 3GS too?  Maybe it's something with that phone??

  • Does Apple charge a dollar to reset the apple id password? What are these $1.00 charges from itunes for? No purchases of movie books music etc. found on itunes.

    Does Apple charge a dollar to reset the apple id password? What are these $1.00 charges from itunes for? No purchases of movie books music etc. found on itunes.

    Found the answer.

  • What brands and type can I use for my iMac 20" internal Hard Drive?

    what brands and type can I use for my iMac 20" aluminium internal Hard Drive?
    can I use WD caviar black?
    is it too hot?

    If you are replacing the drive because the existing one is faulty, that's one thing. If you just want more space, you should take advantage of having a decently fast and relatively small capacity drive in there now (instead of a huge drive). Get an external FireWire drive and off-load most of your user data there. Make your internal drive dedicated to mostly your OS and app files, with plenty of free space. That setup will make your iMac run more efficiently. I won't go into more detail, because I'm not answered your specific question... You can post back with any questions, if interested...
    To answer your questions...
    You should be able to use any SATA 3.5-inch drive internally, but you should probably keep it at or under 1TB. The main concerns are power usage and heat dissipation. A drive like the WD Caviar Green would be ideal in terms of power and heat, but they do have slower (or variable) spin rate. I have one as an external drive (750GB) and it is amazingly quiet and cool. If I had to replace the internal drive because the current drive failed, I'd put it inside. I'll trade a bit of pure performance for the efficiency (including low noise), and these drives are more advanced with higher data density and larger cache, so the trade-off from slower spin rate may not be so bad.
    You can check your current drive's model number (which is shown in System Profiler) to get the specs online. The stock drive in my old +Late 2006+ iMac is a 7200 RPM drive. The Caviar Black is a 7200 RPM drive, with a newer design. So if you want to use a Caviar Black in there, I think it would be OK.

  • HT4718 My copy of Lion is damaged and can't be used for reinstallation, what can i do?

    when I launch Lion Recovery and try to reinstall the OS, there is a message that says that my copy of lion is damaged and can't be used for reinstallation. what can I do?

    Sorry but that makes no sense.
    The Lion install files are not stored on your computer so they can't be damaged. When using the Lion Recovery HD and you want to Re-Install Lion the install files are downloaded from the internet before the actual install begins.
    If at one time you saved the Lion install files, secifically the InstallESD.DMG, and created your own Lion Install USB thumb drive and that is what you are booting from then this same type of thing has happened to me.
    If you can't boot to the current Lion install, or you wiped your hard drive, you can try booting to the included Recovery HD and then download and install Lion or try the Online Internet Recovery HD system by holding down the Command+r keys OR the Command+Option+r keys when starting the system. One of those keyboard combos will take you to the online Lion Recovery system where you can download and install Lion.

  • What's the best logic reverb to use for trumpets and sax

    what's the best logic reverb to use for trumpets and sax.

    The lower transmit frequency limit is in there to make the device meet FCC regulations.. that is a regulation imposed of US regions and, to a lesser extent, Latin american regions that border with the US.
    In addition, you'll be pleased to know that the N900 will not use certain European WiFi channels if a) the sim card is removed or b) the phone has a sim card but is OUT of 3G coverage.. again, to make the device meet FCC regulations.. (seriously.. when you go out of 3G coverage, the kernel reports it is switching from EU wifi to US wifi!!)
    Let me put this into perspective..
    From: http://www.nokia.com/results/Nokia_results2009Q3e.pdf
    Nokia sold 3.1million handsets in the US 2009 Q3
    Nokia sold 27.1million handsets in Europe during the same period.. That is 9 times as many.
    The USA has its OWN firmware
    and yet ALL versions of the firmware (including the UK specific one) are crippled to meet the requirements of a region that produces the lowest sales figures by a factor of 3 (Latin America produced 9.7 million units in 2009Q3)
    Why the HELL are we suffering because of US restrictions..
    That's like saying you can't use bluetooth because it isn't allowed on the Christmas islands.. (it is allowed.. not picking on you, Christmas Islands, but you are small!)
    If the FCC wants a phone that doesn't allow broadcasts on sub 88Mhz frequences, and doesn't want certain Wifi channels to be used, the ALTER THE US FIRMWARE..
    What next, BMWs have with left hand steering in the UK because the US drives on the Left?
    Phillips TVs that only work on 120V because the US uses 120V..
    I don't give a **** what the FCC say.. I'm not in the US and I have my own european and UK legislation to adhere to..
    For a company that INSISTS on having a billion regional firmware versions, they don't appear to be able to get that right either!!! The UK version lacks UK specific restrictions such as the ability to us UK frequencies for wifi and FM transmission!!
    Crazy and very very irritating

  • HT1751 Are these instructions correct?  They don't mention the ITL file...

    Are these instructions correct?  They don't mention the ITL file...

    I'd say they are generally correct, however they don't account for the circumstances in which, following advice given elsewhere in Apple's support documents, the media folder is no longer contained inside the main iTunes folder. This can happen when the media has been consolidated elsewhere,, e.g. an external drive, due to space constraints. This creates what I call a "split library". In such cases the media folder and iTunes folder (holding the .itl database) each need to be backed up and, when restoring, the media folder must be restored to exactly the same path or iTunes will have trouble connecting to the media.
    Should you have created a split library that you'd like to reconnect see make a split library portable.
    There is some odd numbering on the support doc. page so I can't give a section number, but the bit on where to find your iTunes folder doesn't make it clear that the "iTunes" (or "library") folder is normally the parent folder of the "iTunes Media" folder shown in the dialog box, and that they are not the same thing. I suspect this is one of the reasons that some users manage to migrate or restore their media only to find they have lost playlists, ratings, play counts etc.
    Another issue with the article is that it provides a way to backup the library once, but not to efficiently maintain that backup. Deleteing the entire backup to regenerate it would be a waste of time and potentially risky. See this iTunes backup tip for a suggested strategy.
    tt2

  • Overnight my contact list went from 1492 contacts to 52.. With help from Apple support I retrieved all of my contacts.  Here is the problem, I lost the groups.  None of my contacts are sorted into groups as they used to be which is very important for me.

    Overnight my contact list went from 1492 to 52.  With help from Apple I retrieved the missing contacts using Time Machine.  The problems is that the contacts are not in groups as they used to be.  Any suggestions?  I really need them grouped for business reasons.
    Also, there are no longer pictures associated with each contact.
    thanks for any help anyone can give me getting contacts back into the groups that I had established.  By the way, the group names are still there, but they are all empty.
    thanks,
    Sparky

    What Mac do you have, with what version of OS X?

  • What is the AlwaysFilter and when it is used for?

    What is the AlwaysFilter and when it is used for?
    Could you explain it in the details.
    Thank you

    jetq wrote:
    Sorry.
    cache.aggregate(AlwaysFilter.INSTANCE, new LongMin("getAge"))
    That doesn't really help.
    Where does AlwaysFilter come from? Is it part of the core API, or a 3rd party library? If the latter, which one? And in what do the API docs for this class not answer your question?

  • I am confused. Tell me what to do.. I am using Indesign and want to go on using the program as cheap as possible. Which possibilities have I got?

    I am confused. Tell me what to do.. I am using Indesign and want to go on using the program as cheap as possible. Which possibilities have I got?

    Not enough information to provide an answer... do you have a licensed (old) version, or do you have a Cloud subscription?

  • My photos are sharp but become soft when used in and IDVD slide show.

    My photos are sharp but become soft when used in and IDVD slide show. How can I prevent this from happining??

    Hi,
    I suggest that you try unchecking both of the crop options - landscape & portrait.
    To re-create your situation, I had to check the crop for landscape pictures option.
    I prefer to have control over any cropping so I tend to crop each image first before creating the slide show.
    Brian

  • I forgot my security question and the mail they send for recue the awnsers are wrong

    i forgot my security question and the mail they send for recue the awnsers are wrong, like my mail is [email protected] but they say they send to f・・・・・・・@live.com, first i thougt that was normal but the mail never come...... someone help me!

    Call Apple for support. They have account security who can reset those security questions for you if you can verify the account over the phone... Once your security questions are reset you can go to appleid.apple.com and manage your account there! good luck!

  • What is the best I/O to use for a MUD?

    What is the best I/O to use for a MUD?
    It seems that people usually show I/O examples with IOs like:
    BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInptuStream()));
    PrintWriter out = new PrintWriter(socket.getOutputStream());
    out.println("Hello World");
    out.flush();
    PrintStream out = new PrintStream(socket.getOutputStream());
    out.println("Hello World");
    out.flush();When I say 'best I/O' I mean, can you give me an I/O that'll be the best if a MUD starts getting LOTS of request and becomes rather busy?
    Thanks!
    -Neo-

    One last question, are output streams thread safe?A stream is inherently serial in the way it data is written to it. If two threads try to write to the same stream asynchronously, the ordering of the data written will not be predictable.
    For example:
    One class is recieving input from a user and
    reply-printing thing like "Command Successful", and
    another class is recieving messages from other users,
    but the PrintWriter would be originally created in the
    first class and then passed as a parameter to the
    second class...would this work, or should I just
    redirect all command replies to that second class?If they are in the same thread, then it could work. If there are separate threads, then some higher granularity synchronization needs to be imposed, so that the second thread doesn't start writing part way through the first's output.
    For example:public class NeoThreadWriter implements Runnable {
      final String name;
      final int delay;
      final boolean synch;
      NeoThreadWriter (String name, int delay, boolean synch) {
        this.name = name;
        this.delay = delay;
        this.synch = synch;
      public void run () {
        if (synch) {
          new Synch().run();
        } else {
          new ASynch().run();
      class Synch implements Runnable { 
        public synchronized void run () {
          synchronized (System.out) {
            for (int i=0; i<6; i++) {
              System.out.println(name+":"+i);
              try {
                Thread.sleep(delay);
              } catch (InterruptedException iex) {
                iex.printStackTrace();
      class ASynch implements Runnable { 
        public synchronized void run () {
          for (int i=0; i<6; i++) {
            System.out.println(name+":"+i);
            try {
              Thread.sleep(delay);
            } catch (InterruptedException iex) {
              iex.printStackTrace();
      public static void main (String[] args) {
        try {
          Thread threadA = new Thread (new NeoThreadWriter ("A", 40, false));
          Thread threadB = new Thread (new NeoThreadWriter ("B", 20, false));
          System.out.println("asynchronous threads");
          threadA.start();
          threadB.start();
          threadA.join();
          threadB.join();
          System.out.println("synchronized threads");
          Thread threadC = new Thread (new NeoThreadWriter ("C", 40, true));
          Thread threadD = new Thread (new NeoThreadWriter ("D", 30, true));
          threadC.start();
          threadD.start();
          threadC.join();
          threadD.join();
          System.out.println("Done");
        } catch (InterruptedException iex) {
          iex.printStackTrace();
    }With asynchronous threads A and B, the output is all mixed up. With synchronized threads the ordering of the output is maintained. Note that the guard has to encompass all of the code that generates the output; simply synchronizing the println invocations wouldn't prevent the mixing.
    Pete

  • HT1586 What's the best HDMI switcher to use for Apple TV?

    What's the best HDMI switcher to use for Apple TV?  My widescreen TV has only one HDMI outlet and it is in use. 
    Thanks,
    Joanna

    Anyone sold by MONOPRICE.COM are really worth buying!

Maybe you are looking for

  • Run time error while executing Rule- RSTRAM- 301

    Hi I am getting following error whilr  trying to laod data from flatfile. This process worked well till last month but now its failing with the below error.  Looks like  one columns which is foramatted to number without decimal when loaded is changin

  • Trying to pin background music with no luck.  Any suggestions?  Thanks

    Trying to pin background music with no luck.  Following instructions, I click on name of background audio bubble and drag horizontally.  The whole bubble moves and does not pin, ie, does not turn purple and no pushpin shows up.  Any suggestions?  Eve

  • Problems with Duke's Bookstore Examples (Chapter 3 of the J2EE 1.4 Tut)

    Hi Please help me, I am going through the J2EE tutorial (I have the Sun App Server 8 installed on a Win XP Service Pack 2 machine) but am running into problems. I'm having a problem with the 1. asant build and 2. asant create-db_common commands. 1. a

  • Printing documents on Linux

    We have a problem, we got reports mixed up. Sometimes documents get printed on a different printer then specified. This seem to be happening when the concurrent programs output is send to the server at exactly the same time. Is this a known issue? Ar

  • Lost ical entries

    Reinstalled system software on my eMac recently. It wiped out all the ical calendar entries. I recently bought an ibook and transferred everything from the eMac, icncluding the calendar, so I have backup data. However when using Migration Assistant f