Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bit shifting additional info

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I am having a somewhat hard time mastering the concept of left and right shift of bits. << and >>.

Where could I find a tutorial or some additional information about these? I should be taking the test in about three weeks and need to know this pretty well.

Thanks.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Oscar:

It seems to me that the subject you mentioned isn't covered in Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0 (CX-310-055) Exam Objectives but in 1.4.
Am I rigth?
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thats Right!

Shift operators have been left out for SCJP Java5.0.

Regard's,
Tilak.
 
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java Ranchers, comrades, do you want to master Java or just pass the exam?

If Oscar actually wants to know how to use the bitwise operators I think we could give him a hand whether it is in the exam or not.

Oscar, my friend, visit this link in the Java Tutorial to master Java Bitwise operators.

Remember, many can pass the exam, but not all are real masters.

Regards,
Edwin Dalorzo.
[ January 18, 2006: Message edited by: Edwin Dalorzo ]
 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dont completely agree with you Edwin Dalorzo
knowing operators or whole JVM specification , to that extend ,does not automatically makes you a good or even a decent programmer, its more about how do you know what you know and how effective you use it.
I don�t see for me to waste my time finding out why shift operators behave "this way and not that way" if it is not going to add any value, based on my current role .
being practical programmer is much better ..
I know many programmers that take pride and purposely write overcomplicated code , gives then fuzzy feeling of being smart ...something like writing "hello world" string to console using GOF patterns ....
or something like this System.out.println(_b300$__mtd("Hello World"));...
so lets be realistic and face it ,I dont think its good Idea to think in binary ... I would rather read about good design practices, than about operators.....

this is just my opinion ..
 
Poop goes in a willow feeder. Wipe with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic