A) op1 >>> op2 means shift bits of op1 right by distance op2(unsigned). Can anybody explain this with an example. what does 'unsigned' mean here. B) ~op2 indicates the operation bitwise complement has taken place. Can anybody explain this also with an example.
Carl, I get this error when I go to your link. Error: 404 Location: /campfire/StroyBits.jsp JSP file "/home/vhost1/www.javaranch.com/vroot/html/campfire/StroyBits.jsp (No such file or directory)" not found
Dear Lalitha, you wont be getting this error. Mean while u can reffer, Patrick Naughton' book on Java 2 , that has got a fine example. for a rule remember if a number x is positive ~x will be -(x+1) and if negative ~x will be +(x-1)
Please note that The Java Ranch has a naming policy, described here and "Lalitha S" is not a valid name. Please choose one which meets the requirements. Thanks.