Results 1 to 3 of 3
  1. #1
    Pojahn_M's Avatar
    Pojahn_M is offline Senior Member
    Join Date
    Mar 2011
    Location
    Sweden
    Posts
    197
    Rep Power
    4

    Default Java and assembly?

    If I am not mistaken, these operators are only related to assembly: << >> >>> & | ^ etc...
    Is this correct?

    In order to become a good programmer, should I learn how to master these and/or learn assembly programming?

    There is a code I found that look like this:

    sb.append(Integer.toString((mdbytes[i] & 0xff) + 0x100, 16).substring(1));
    (sb is a StringBuilder).
    I mean, what are those? 0xff?
    Last edited by Pojahn_M; 02-03-2012 at 02:24 AM.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default Re: Java and assembly?

    I'm not amazing when it comes to bit manipulation, but that's all those operators do. They shift bits, and you have anding bits, oring bits, and I believe xoring bits.While I doubt it is necessary to be a good programmer, it certainly wouldn't hurt. I'm sure Jos, or someone a bit more advanced than Iwill be able to explain the bit manipulation stuff a bit more.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

Similar Threads

  1. Assembly
    By sunde887 in forum Forum Lobby
    Replies: 4
    Last Post: 05-04-2011, 12:28 AM
  2. calling Assembly language code from java using JNI
    By ashok_jeev in forum Advanced Java
    Replies: 6
    Last Post: 02-07-2011, 07:43 AM
  3. Inline JVM assembly in Java
    By youngstorm in forum Advanced Java
    Replies: 2
    Last Post: 09-15-2010, 07:14 PM
  4. Forgotten Assembly Language Commands
    By Nicholas Jordan in forum Entertainment
    Replies: 1
    Last Post: 04-06-2010, 05:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •