Home Tutorialhelp Allcomments Java Master Java Java Eft Shift

 
 

Comments

 
User Comments for the tutorial:

Java Left Shift "<<" Operator



Total comments: 3      View Tutorial    Discuss: Java Left Shift "<<" Operator
Advertisement
Comments

solve the my problem right shift operator
please tell me right & left shift operator  

using << with - sign
i was using something like this 4<<-8 and i got a result as 67108864 but i dont have clue why. i did be grateful if you can help me on this. thanks  

Example code of shift operator
public class shift { public static void main(String[] a) { System.out.println("115<<2 "+(115<<2)); System.out.println("115>>2 "+(115>>2)); System.out.println("115>>>2 "+(115>>>2)); } } output will be: 115<<2 460 115>>2  

Related Tutorial and Articles
Java Beginners

right and left shift operators
-left-shift.shtml http://www.roseindia.net/java/master-java/java-right...right and left shift operators   hi i am jane pls explain the differentiate between right shift and left shift operators   

General

Java Left Shift "<<" Operator
Java Left Shift "<<" Operator  ... Shift "<<" operator in Java. The Java programming language has... the usage of  Left Shift "<<" operator. Description of code 

General

Java Right Shift ">>" Operator
Java Right Shift ">>" Operator  ...: The right shift ">>"operator shifts the left operand... shift ">>"operator in Java. The Java programming language has 

Java Tips and Examples

Unsigned right shift ">>>" Operator
unsigned right shift ">>>"operator in Java. The Java programming language has... Unsigned right shift ">>>" Operator   ... the usage of  unsigned right shift ">>>"operator. Description 

Java Beginners

left shift and rigth shift operators
left shift and rigth shift operators   hi some programs for left shift and right shift operators 

General

Bitwise and Bit Shift Operators
. Thus a signed left or signed right shift (<< and >>) operator...;) : The signed right shift (">>") operator shifts a  bit...;>>>") operator behave like the signed right shift operator. i.e. 

General

Shift Array Elements in Jasva
Java Shift Array Elements This section illustrates you how to shift the array... to enter the array elements,  the direction of shifting (Right or Left...[i] = a; } } Method that shift the elements from right: public static 

Java Beginners

Left and Right panel in JSP - Java Beginners
Left and Right panel in JSP  Hello Friends, Please help me to showing right and left frame on my JSP page. I want to showing fix left frame which... on frame2 means in frame right. Give suggest me solution which support my 

Java Beginners

how to print from right to left in java????
how to print from right to left in java????   can anyone pls tell how to print from right to left in java 

Java Beginners

JAVA leftshift operator add 1 instead of 0
JAVA leftshift operator add 1 instead of 0  Hi Guys, I have a task to do. If I have some some int variable and If I apply left shift operator... this, 5 as binary : 0101 1st time left shift: 01010 2nd time left shift: 010100 

Advertisements Advertisements
 

 

 

DMCA.com