Select the correct answerWhich of these is long data type literal?OptionsABCDEFG0x99fffL0x99fffa99671246
Question
Select the correct answerWhich of these is long data type literal?OptionsABCDEFG0x99fffL0x99fffa99671246
Solution
The correct answer is 0x99fffL. This is because in Java, a long data type literal is represented by appending an 'L' or 'l' at the end. The '0x' at the beginning indicates that it is a hexadecimal number.
Similar Questions
Which of these is long data type literal?OptionsABCDEFG0x99fffL0x99fffa99671246
Select the correct answerIn C, which type of data type is used to store a single character?Optionsintcharfloatdouble
Select the correct answerWhat is the base of BigDecimal data type?OptionsBase 8Base 2Base 10Base e
Which of the following is a valid long literal?ABH8097L9900239044230xnf029L
Select the correct answerWhat will be the data type of x after the following statement?x = FalseOptionsDictionaryStringListBoolean
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.