Total members 11890 |It is currently Wed Apr 24, 2024 12:34 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





whats different between >> and >>> operator in java




Author:

For shift >> :
shifts the right operand to the right side by the number of bits specified by its right operand

For >>> :
Is a zero filling operator :filling the MSBs zeros and thereby losing the sign bits!

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

I'm going to add in this

<< ---> Left Shift Operator and
THERE IS NO OPERATOR like "<<<" in Java :lol:


Author:
Newbie
User avatar Posts: 2
Have thanks: 0 time
Post new topic Reply to topic  [ 3 posts ] 

  Related Posts  to : shift operator in java
 Perform Multiplication by Shift Left Operations     -  
 operator int()     -  
 Using the ? Operator     -  
 What is the % operator     -  
 operator overloading     -  
 trinary operator     -  
 Object without new Operator     -  
 Sizeof Operator     -  
 stream operator     -  
 What is Operator Overloading? !!!     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com