SOMETHING ACHIEVED WITHOUT HARD WORK WILL WORTH NOTHING.SO NEVER MAKE SENSE ABOUT THE DIFFICULTIES FACED..,
A big Hai to everyone…., This is RAGUNANTHINI doing my B.Tech IT at Sri Krishna college of Engineering and Technology, in Coimbatore. This is my very first blog and post as well. First of all I wanted you to know what made me blog. The main reason behind it is, being a student I learn or get to know something new and interesting everyday. And I believe,sharing cherishes the knowledge.
So, I would like to start with some technical stuffs.There are things that seems to be similar, but actually they aren’t. One such thing is AUGMENTED REALITY and VIRTUAL REALITY. They both have a thing in common, as they both are used to make changes to the current environment virtually, but the way they do varies.
VIRTUAL REALITY (VR): It is an artificial, computer-generated environment providing vision and hearing as well. Thus it makes the user feel the simulated environment to be real or in other words, VR creates reel world in the real world. VR makes it true, that you are into an imaginary world where, you will FEEL to be a part of it. Wearing a headset (e.g. PlayStation VR, Samsung Gear VR etc..,) along with some sensors to detect your body movements will help to experience of the created 3D virtual world.
Feel the world
Oh yeah..,I play
AUGMENTED REALITY (AR): Augmented reality as well creates the virtual information, But, the created information is super imposed on the natural environment based on certain conditions, unlike virtual reality which completely pulls you out of the world. Here in AR you can see the real world with few extra decorations, you wished to have in it. A simple example could be, when you want to buy new furniture you can’t check its arrangements by placing it one after the other to know which suits the environment. But the results can be viewed in the form of AR, using appropriate AR apps or glasses. Another example can be, the most played AR game “POKE-MOM GO” .
Do i suit here
Pick me i am here
Back with another post.., In this post I will differentiate two almost similar operators in JAVA. They are Right shift(>>) and Right shift fill zero(>>>) . These are Binary Bit wise shift operators,(operand1 operator operand2). First operand is the one on which the operator must perform its action and the second operand specifies how many bits are to be SHIFTED.
In java size of int data type is 4 bytes which is equal to 32 bits. Hence the value stored in an int variable is internally represented in 32 bit binary format,Where first 31 bits from right (known as LSB – least significant bit) are used to store the values and 32nd(MSB – most significant bit) bit is the sign bit which says the stored value is positive or negative. MSB is set to 1 if the value stored is negative else it remains 0.
Example: The number (20) is internally represented as 0000 0000 0000 0000 0000 0000 0001 0100 whereas (-20) as 1111 1111 1111 1111 1111 1111 1110 1100( in 2’s complement form) To know more about 2’s complement
RIGHT SHIFT OPERATOR(>>): This operator shifts the bits to the right for the specified number of times and fills the left most bit with the value same as in the sign bit. Let us consider an example “X=20>>2″ which means shift the bits of 20 for 2 times towards right and store the resultant in X. Hence the resultant is 0000 0000 0000 0000 0000 0000 0000 0101 which is equal to 5. The sign bit is filled with 0 after each shift as the number is positive.Let the other example be “X= – 20>>2″ the resultant is 1111 1111 1111 1111 1111 1111 1111 1011 which is equal to -5(stored in 2’s complement form) is stored in X. The sign bit is filled with 1 after each shift as the number is negative.
RIGHT SHIFT FILL ZERO OPERATOR(>>>): For positive numbers both the operators perform the same operation. They differ when the value stored is negative. For the same “X= -20>>>2” the resultant is 0011 1111 1111 1111 1111 1111 1111 1011 which is equal to 1073741819. This is because this operator fills 0 in the MSB irrespective of the sign of the number.