Comment

Java coder
comment,
October 25, 2008 at 4:19 AM

"The bitwise XOR "^" operator produces 1 if both of the bits in its operands are different."

How about this: 2^1 = 3 and 2^3=1
View All Comments | View Tutorial
Related Tutorial and Articles
Core Java

Java XOR operator
Java XOR operator       Java makes available the bitwise operators like AND, OR, XOR, and NOT. .../master-java/java-bitwise-xor.shtml http:/www.roseindia.net/software-tutorials 

Java Tips and Examples

Java Bitwise XOR "^" Operator
Java Bitwise XOR "^" Operator       In this section, you will learn how to use bitwise XOR... of  bitwise XOR "^" operator. Description of code: The bitwise XOR 

Development process Questions

xor operator not working correctly with array
link http://www.roseindia.net/java/master-java/java-bitwise-xor.shtml   .../java/master-java/java-bitwise-xor.shtml...xor operator not working correctly with array  main { int a[2 

Java Tips and Examples

Java XOR Operator
Bitwise XOR (exclusive or) "^" is a Java operator.... Following example will show how to use "^" operator in Java. XOR is a binary operator that is evaluated from left to right. Example of Java XOR 

Java Tips and Examples

Bitwise Operators
Java Notes: Bitwise Operators Java's bitwise operators operate... 1111 1111 1111 1111 1111 1100. The bitwise operators... A common use of the bitwise operators (shifts with ands to extract values 

Java Beginners

bitwise operators
bitwise operators  Write short note on bitwise operators of Java.   Please visit the following links: http://www.roseindia.net/java/java-tips/data/expressions/slides-bitops.shtml http://www.roseindia.net/java/java 

General

Java Bitwise Operator
/master-java/bitwise-bitshift-operators.shtml      ... Java Bitwise Operator      ... (or characters). However in Java, the bitwise and bit shift operators are used 

General

Bitwise and Bit Shift Operators
Bitwise and Bit Shift Operators       In Java the bitwise and bit shift operators are used... OR (^): The Bitwise exclusive OR (^) performs the exclusive or (XOR) operation i.e.  

Java-Tutorials

Bitwise Operators in java 7
In this section you will learn about the Bitwise Operators. This is one type of operators 

Java Tips and Examples

Java Bitwise NOT "~" Operator
Java Bitwise NOT "~" Operator       In this section, you will learn how to use bitwise NOT "~" operator in Java. The Java programming language has operators 

Programming Tutorials

Master java in a week
;    Class Declaration: Class is the building block in Java...; The main method is the entry point in the Java program and java program can't run... is always first thing that is executed in a java program. Here is the main method 

JSP Interview Questions

all comment in jsp
page in the browser. jsp scriptlet tag also support java comment...; // java comment /* multiple line java...all comment in jsp  Defined all comment in jsp ?   jsp 

Java Tips and Examples

Java Bitwise AND " &" Operator
Java Bitwise AND " &" Operator   ... bitwise AND " &" operator in Java. The Java programming language has operators that perform bitwise operations. In the example below we have shown 

Java Tips and Examples

Java Bitwise OR " |" Operator
Java Bitwise OR " |" Operator       In this section, you will learn how to use bitwise OR "|" operator in Java. The Java programming language has operators that perform 

General

Master Java In A Week
Master Java In A Week       Starting Java Java as a programming language Java is an Object oriented application programming 

Core Java

Java bitwise OR "|" operator
Java bitwise OR "|" operator In this section you will learn about how to use" |" operator in java. Java provides six types of operators.... Code here displays the use of "|" operator in Java: A simple 

JSP Servlet Questions

How do i do the coding for 'leaving a comment' in java
How do i do the coding for 'leaving a comment' in java  i am designing a webpage.In my webpage i want to add the option of adding a comment by the readers of the page.how do i do 

General

Change Background of Master Slide Using Java
Change Background of Master Slide Using Java  ... to create a slide then change background of the master slide. In this example we are creating a slide master for the slide show. To create slide show we 

WebSevices Questions

Internet and Web related questions for Web Master.
Internet and Web related questions for Web Master.   Explain the difference between the Internet and Web. What are Web browsers? Explain the two main... is Java? What are the applications of Java that you can use for Web designing 

Java Beginners

core java - Java Beginners
core java  write a program to add two numbers using bitwise operators... BitWiseOpsTest { public static int add(int x, int y) { int xor, and, temp; and = x & y; xor = x ^ y; while(and != 0 ) { and <<= 1; temp = xor 

XML Tutorials

Insert a Processing Instruction and a Comment Node
a Processing Node and Comment Node in a DOM document. JAXP (Java API for XML... Insert a Processing Instruction and a Comment Node  ... an instance of an XMLDOMElement. Comment c = doc.createComment(" 

Java Interview Questions

adding two numbers using bitwise operators
adding two numbers using bitwise operators  adding two integer numbers with using bitwise opeators   Hi Friend, Try the following code...[] args) { System.out.println("Adding 5 and 6......"); int x=5,y=6; int xor 

Java Beginners

java
java  hi im new to java plz suggest me how to master java....saifjunaid@gmail.com 

Java Tips and Examples

Bitwise Operators
. Bitwise xor (a ^ b)- Result is 1 in positions where the two corresponding bits... Bitwise Operators Integers (int and long) can be considered as collections of 32 or 64 bits. Bitwise operators perform logical operations on each bit 

Java Interview Questions

java
java  what are abstract methods   Please visit the following link: http://www.roseindia.net/java/master-java/abstract-class.shtml 

XML Tutorials

Creates element node, attribute node, comment node, processing instruction and a CDATA section
Creates element node, attribute node, comment node, processing...; This Example shows you how to Create an Element node ,Comment node ,Attribute node, Processing node and CDATA section node in a DOM document. JAXP (Java 

Java Beginners

java
, visit the following links: http://www.roseindia.net/java/master-java/java-left-shift.shtml http://www.roseindia.net/java/master-java/java-right-shift.shtml 

Java Beginners

java
://www.roseindia.net/help/java/a/java-abstract-class.shtml http://www.roseindia.net/java/master-java/abstract-class.shtml 

Java Beginners

java
??all the database must be in master computer only and all other computer must retrieve that data from the master computer only.please help 

Core Java

Java "&" operator
in java. Bitwise operator work on bit and perform bit by bit operation...; operator in Java: A simple example using Bitwise (AND) "&"...Java "&" operator. In this section you will learn how to use 

Eclipse Plugins

Masters of Java Assignment Plugin
it significantly easier to develop Master of Java Assignments by making use of the Eclipse Java IDE.  The plugin has the following features... Masters of Java Assignment Plugin   

Java Interview Questions

java prg
java prg  how to write a program in java for add two number without........."); int x=5,y=6; int xor, and, temp; and = x & y; xor = x ^ y; while(and != 0 ){ and <<= 1 

Java Beginners

Java - Java Beginners
Java  Java Master get ready.... Can we make plugin for Browser in java ? Any reply is appriciated 

General

Java Left Shift "<<" Operator
Java Left Shift "<<" Operator  ... Shift "<<" operator in Java. The Java programming language has operators that perform bitwise operations. In the example below we have shown 

General

Java Right Shift ">>" Operator
Java Right Shift ">>" Operator  ... shift ">>"operator in Java. The Java programming language has operators that perform bitwise operations. In the example below we have shown 

Java Beginners

JAVA - Java Beginners
JAVA   hello urgent code required ...Read a string and convert it to uppercase and find its ASCII value..convert that ASCII value to binary take a key string do the same procedure as above and perform XOR operation on both 

Java Tips and Examples

Java as a general purpose language
Java as a general purpose language       Java is an Object oriented application programming language developed by Sun Microsystems. Java is a very powerful general-purpose 

Java Beginners

java code - Java Beginners
, Please visit the following links: http://www.roseindia.net/java/master-java/abstract-class.shtml http://www.roseindia.net/java/master-java/interface.shtml...java code  when will go for abstract and when will go for interface 

General

Java Comments - Java Tutorials
ignore these comments and do not compile it. Types of comment Java supports... .style1 { text-decoration: underline; } Comments in Java Comments in Java holds the description or hint about the code or explanations 

Java Beginners

file in java - Java Beginners
file in java  I want to count the number of white line and comment line in a file (.sql) with java if you have an example thank you in advance 

General

Java AWT Package Example
Java AWT Package Example       In this section you will learn about the AWT package of the Java. Many running examples are provided that will help you master AWT package. Example 

Java Beginners

core java - Java Beginners
using arithmatic operations?(using Bitwise operators)  Hi you can check...-in-java/ it's about calculating two numbers Java Program Code for calculating two numbers http://www.roseindia.net/java/java-conversion/calculating-three 

Java Beginners

core java - Java Beginners
/java/language/java-keywords.shtml http://www.roseindia.net/java/master-java/java-keywords.shtml Thanks...core java  how many keywords are in java? give with category?  

Training

Java Training and Tutorials, Core Java Training
: Java bitwise NOT "~" operator: Java bitwise XOR "^" operator: Java...; Bitwise and Bit Shift Operators: Java 

Java Beginners

java - Java Beginners
://www.roseindia.net/java/master-java/java-a-general-purpose-languaage.shtml http://www.roseindia.net/java/master-java/index.shtml http://www.roseindia.net/java/master...java  hi, i'm chandrakanth.k. i dont know about java. but i'm 

Java Beginners

java - Java Beginners
java  hi sir/mam i'm Gomathi...... what is called interface? it has any definition?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/master-java/interface.shtml Thanks 

Java Beginners

java - Java Beginners
java  where do i declare an enum?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/master-java/enum.shtml Thanks 

Java Interview Questions

java - Java Interview Questions
java  what is the use of marker interface?????  Hi Friend, Please visit the following link: http://www.roseindia.net/java/master-java/interface.shtml Thanks 

Java Beginners

java - Java Beginners
java  ...can you give me a sample program of insertion sorting... with a comment,,on what is algorithm..   Hi Friend, Please visit the following link: http://www.roseindia.net/java/beginners/arrayexamples 

Java Beginners

java Exception - Java Beginners
java Exception  Hello sir ,Here Exception in thread "main" java.lang.NoClassDefFoundError: bitwisedemo1/java Help me /** * Author@sushant savant a=64,I=a<<2 find I using Bitwise Left shift * */ public 

Java Beginners

core java - Java Beginners
"); } } ------------------------------------------- Read for more information. http://www.roseindia.net/java/master-java/index.shtml Thanks...core java  how to write a simple java program?  Hi friend 

Java Beginners

java - Java Beginners
://www.roseindia.net/java/master-java/method_overloading.shtml http.../java/master-java/abstract-class.shtml http://www.roseindia.net/java/javascript...java   your website is best look i am intension of this java 

Java Beginners

java - Java Beginners
a key string of 4 character do the same procedure as above and perform XOR 

Java Beginners

java - Java Beginners
the following links: http://www.roseindia.net/help/java/p/polymorphism.shtml http://www.roseindia.net/java/master-java/method_overloading.shtml http... may refer to different methods. In java,there are two type of polymorphism 

Java Beginners

Java Abstraction - Java Beginners
Friend, Please visit the following links: http://www.roseindia.net/java/master-java/abstract-class.shtml http://www.roseindia.net/help/java/a/java-abstract...Java Abstraction  If we declare a class as abstract then it contains 

Java Beginners

New To JAVA - Java Beginners
://www.roseindia.net/java/master-java/index.shtml Thanks...New To JAVA  hi iam new to java..,can you please guide me how to learn the java and also tell me how many days it takes to learn java  Hi 

Java Beginners

Core java - Java Beginners
://www.roseindia.net/java/master-java/inheritance.shtml Thanks  Hi... multiple inheritance from java is removed.. with any example.. Thank you... of Interfaces in Java Thanks 

Java Interview Questions

java - Java Interview Questions
read the given tutorial. http://www.roseindia.net/java/master-java/abstract...Java Abstract Class and Interface Info  What are the Java Abstract Class and Interfaces?  Hi Bharathi Abstract Class - a class which 

Java Beginners

Java Project - Java Beginners
these modules. All these modules are using more than two common master files i.e. employee master. Now, can you tell in Java programming with Mysql How can...Java Project  Dear Sir, I have to do Project in "IT in HR i.e. 

Training

Java Web Services Online Training
of Java Web services. syllabus and what it takes to master java web services...Java Web Services Online Training Java Web Services online training enables students and learners to make interactive web based services using Java and its 

General

X - Java Terms
like javax.xml.transform.    Java XOR operator Java makes available the bitwise operators like AND, OR, XOR, and NOT.   ... X - Java Terms       

Java Beginners

java - Java Beginners
: http://www.roseindia.net/help/java/m/method-overloading-in-java.shtml http://www.roseindia.net/java/master-java/method_overloading.shtml http://www.roseindia.net/java/javascript-array/modified-java-method-overriding.shtml http 

Programming Tutorials

Java Comments
is discarded by the Java compiler. For instance /* This comment, a "slash-star" comment... = "/* This is not a comment */"; Unicode Characters in Comments Remember that Java still interprets... Java Comments       

Java Beginners

java - Java Beginners
information : http://www.roseindia.net/java/master-java/inheritance.shtml Thanks...java  Why java does not support multiple inhertance?  Hi... the interface. In Java Multiple Inheritance can be achieved through use of Interfaces 

Java Beginners

java object - Java Beginners
information. http://www.roseindia.net/java/master-java/variables-in-java.shtml...java object  i want to where in the memory the java objects,local variables,instances variables,static variables,final variables,methods 

Java Beginners

java
java  diff bt core java and java 

JSP Interview Questions

JSP Comment and HTML Comment
JSP Comment and HTML Comment  Difference between JSP Comment & HTML Comment ?   JSP Comments are removed by the JSP Engine during the translation phase (JSP Comments are not even part of the compilation unit 

Java Interview Questions

java
java  what is java 

Java Beginners

core java - Java Beginners
://www.roseindia.net/java/master-java/interface.shtml Thanks...core java  When we will use marker interface in our application?  Hi friend, Marker Interface : In java language programming 

Java Beginners

java - Java Beginners
/java/master-java/java-object-oriented-language.shtml Thanks 

Java Beginners

java - Java Beginners
links: http://www.roseindia.net/java/java-tips/language/10basics/import.shtml http://www.roseindia.net/java/master-java/enum.shtml http://www.roseindia.net/java/java-tips/oop/constructors/constructor.shtml Thanks 

Java Interview Questions

Java - Java Interview Questions
Java  Respected Sir/Madam First i can introduce my self, Am Ashok Kumar C from Tamilnadu, I am going to finish Master Degree In Computer... Interview interview, Tech are c++, java,  Hi friend, Now get more 

Java Beginners

java - Java Beginners
to : http://www.roseindia.net/java/master-java/interface.shtml http://www.roseindia.net/java/master-java/abstract-class.shtml http://www.roseindia.net/interviewquestions/corejava.shtml http://www.roseindia.net/java/master-java 

Java Beginners

java - Java Beginners
the following links: http://www.roseindia.net/java/master-java/interface.shtml http://www.roseindia.net/java/master-java/abstract-class.shtml Thanks 

Java Beginners

java - Java Beginners
computer science i seem not to be understanding java quiet clearly i still fail to do simple programs what can i do , how can i understand java and how can i master programing , i can read a flow chart and do a program but the problem 

Java Beginners

JAVA
JAVA  how the name came for java language as "JAVA 

Java Interview Questions

java
java   why iterator in java if we for loop 

Java Beginners

java
java  explain technologies are used in java now days and structure java 

Java Interview Questions

java
java  different between java & core java 

Java Beginners

java
java  what is java reflection 

Java Beginners

java
java  is java open source 

Java Interview Questions

java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception 

Java Interview Questions

java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java 

Java Beginners

java from Scratch - Java Beginners
/java/master-java/index.shtml Thanks...java from Scratch  Hi experts, I am new one in dotnet ,I want to switch to java side,& having theritically knowledge of java,Kindly suggest me 

Programming Tutorials

Java Programming: Other Features of Java
Appendix 1: Other Features of Java THIS TEXTBOOK does not claim to cover all the features of the Java programming language, or even to give... of the book is to explain programming, not Java. Nevertheless, it can serve 

Java Interview Questions

Java - Java Interview Questions
Java  Hi How to write java code inorder to get the comments written in a java program? Please let me know..this was asked in my interview... in details. For more information on Java visit to : http://www.roseindia.net/java 

Java Beginners

java - Java Beginners
/java/master-java/java-object-oriented-language.shtml Thanks 

Java Beginners

output java - Java Beginners
. This link will help you . Please visit : http://www.roseindia.net/java/master-java/index.shtml Thanks Amardeep...; } a. what is the output of the ff. java statement:? i. System.out.println (secret 

Java Beginners

comment.css - Java Beginners
; } .comment { list-style: none; padding: 10px 0; } .comment .comment-author { float: left; width: 72px; } .comment .comment-meta { float: left; width: 450px; color: #EEEEEE; } .comment .comment-meta span { color 

Java Beginners

Object in java - Java Beginners
. For read more information on Java OOPs visit to : http://www.roseindia.net/java/master-java/java-object-oriented-language.shtml http...Object in java  Hi deepak, I am new to java, can u tell me what 

Java Interview Questions

java
java   What is ?static? keyword 

Java Beginners

java
java  RARP implementation using java socket 

JavaMail Questions

java
java  sample code for RARP using java 

Java Beginners

Java
Java  how to do java in command prompt 

Java Beginners

java
java  why to set classpath in java 

Java Beginners

java
java  why to set classpath in java 

Java Interview Questions

java
java  Write a java code to print "ABABBABCABABBA 

JavaMail Questions

java
java  write a program in java to acess the email 

Java Interview Questions

java
java  send me java interview questions 

Java Beginners

java
java  how use java method 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.