| Author |
can we apply left hift and right shift operators to double,float???
|
Deepakk Verma
Ranch Hand
Joined: Sep 09, 2009
Posts: 31
|
|
Can we apply right shift(>>), and left shift (<<) operator to float and double type values?..
if not why?
Please explain...
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12909
|
|
|
Why don't you write a small test program to find out if you can do that or not? Experimenting is a great way to learn.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32644
|
|
|
. . . Or read the Java™ Language Specification.
|
 |
Deepakk Verma
Ranch Hand
Joined: Sep 09, 2009
Posts: 31
|
|

Thank you guys
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32644
|
|
You're welcome
|
 |
 |
|
|
subject: can we apply left hift and right shift operators to double,float???
|
|
|