Title: Message
Rita tem uma explicação sobre "shifts" no arquivo da lista.
 
Veja em :
 
 
Abraç[]s,
 
Max Ricardo Mercurio Ribeiro
IT & Business Consultant for Alcoa Company
 
e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> (company) / [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> (personal)
phones # : (0x11) 9101-5511 mob. / (0x11) 3741-4418 com. 
-----Original Message-----
From: Rita Fernandes [mailto:[EMAIL PROTECTED]]
Sent: Friday, 17 de January de 2003 12:07 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [java-list] Duvidas Gerais

Qual a diferenca entre wait(), notify(), notifyAll();
 
Alguem pode me explicar :
  • << Un-signed left shift
  • >> Signed right shift
  • >>> Un-signed right shift
public class TestShift {

       public static void main(String args[]) {
               int x = 1;
               x = x >> 31;
               int y = -1;
               y = y >> 31;
               System.out.println("The ouput of x is " + x );
               System.out.println("The ouput of y is " + y );

       }
}

 

public class TestShift {

      public static void main(String args[]) {
               int x = 1;
               x = x << 31;
               int y = -1;
               y = y << 31;
               System.out.println("The output of x is " + x );
               System.out.println("The output of y is " + y );

       }
}

 

public class TestShift {

       public static void main(String args[]) {
               int x = 1;
               x = x >>> 31;
               int y = -1;
               y = y >>> 31;
               System.out.println("The output of x is " + x );
               System.out.println("The output of y is " + y );

       }
}

Responder a