>> I googled the dinference between bitwise and logical operators, but i could not understand exactl what it is. Can you simply explain ?
GeekTool 0 Junior Poster in Training
Recommended Answers
Jump to PostCan you post what you have found and your questions about what you don't understand?
The logical operator returns a true/false value like == or <
bitwise changes the value of a variable like a + or * operator
Jump to Post^ basically right, except that nowhere does Java define any mapping between 0 and 1s vs the boolean values false/true.
Bitwize operators work on each bit of an int value, the logical operators work on individual boolean true/false values, but there's no connection between these two versions.
All 7 Replies
NormR1 563 Posting Sage Team Colleague
GeekTool 0 Junior Poster in Training
NormR1 563 Posting Sage Team Colleague
CPT 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
GeekTool 0 Junior Poster in Training
NormR1 563 Posting Sage Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.