Java Data Type Quiz May 20, 2021 Leave a Comment on Java Data Type Quiz Welcome to your Java Data Type Quiz. You are attempting the quiz on April 26, 2024 For your information, please note that this Java Data Type Quiz has only single choice questions. Read each and every questions carefully before you start answering. You will have 5 min to complete the quiz. After completion of test you can see your quiz result with sharing option, You can share your quiz result to social media like Facebook, Instagram etc. Note: You can view all the answers at the end of this quiz. Best of luck for LTE Java Data Type Quiz 1. What is the numerical range of a char data type in Java? 0 to 256 0 to 65535 -128 to 127 0 to 32767 2. All the variables of interface should be? Protect , static , final Default and static Default and final Public, static , final 3. Which of these can’t be used for a variable in Java? None Identifier and Keyword Identifier Keyword 4. Which of these statement are incorrect Addition operator . +, and subtraction operator have equal precedence Equal to operator has least precedence Brackets () have highest precedence Division operator . /, has higher precedence that multiplication 5. Which data type value is returned by all transcendental math function? double float int long 6. Which operator is used to invert all the digit in binary representation of a number? ^ >>> <<< ~ 7. Which right shift operator preserves the sign of the value? << <<= >>= >> Please fill in the comment box below.