1.

Which of these is long data type literal?(a) 0x99fffL(b) ABCDEFG(c) 0x99fffa(d) 99671246I have been asked this question in a national level competition.My enquiry is from Literals & Variables topic in section Data Types, Variables and Arrays of Java

Answer» RIGHT choice is (a) 0x99fffL

To explain: DATA type LONG literals are appended by an UPPER or LOWERCASE L. 0x99fffL is hexadecimal long literal.


Discussion

No Comment Found

Related InterviewSolutions