hello guys I am still not able to understand the concepts of shift operators Is there any notes or tutorials which explain this concept in a better way??(just like it explains a begineer) please help?
Joined: Dec 20, 2001
Originally posted by sonir shah: hello guys I am still not able to understand the concepts of shift operators Is there any notes or tutorials which explain this concept in a better way??(just like it explains a begineer) please help?
You can check out this story from the campfire section which may be helpful to get you started. I'd try a few problems and, if you're finding that you're having trouble getting the right answer or explaining why, post it here and I'm sure there are tons of bit-shifting gurus here that can explain it to you in pseudo-plain english. Corey
Hi. I tried studying the CampFire at the Javaranch regarding Bits and Shift operators. But I am still not cleared my concepts very efficiently.I dont know why? Can any one suggest me what am I supposed to do?? Sonir
Joined: Jul 24, 2001
Hi I found Marcus Green's tutorial on shifting pretty good. www.jchq.net Chances are that you'll get 1-2 questions in the exam exclusively on shifting... max so don't loose too much sleep on the subject! One tip I can think of is to start thinking in groups of bits eg 8 groups of 4 1/0s for integers, 2 groups of 4 for bytes etc do the decimal-binary conversion, and write down the problem in these groupings. Also you may want to do a search through this board for specific questions on bit-shifting asit comes up regularly [ January 11, 2002: Message edited by: Jim Petersen ]
- Jim Petersen <br />SCJP2<br />SCWCD<p>- but then again, I could be wrong...