adplus-dvertising
frame-decoration

Question

What is the suffix used to convert an int literal to long literal in Java?

a.

0l or 0L

b.

l or L

c.

i or I

d.

0x or 0X

Answer: (b).l or L

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the suffix used to convert an int literal to long literal in Java?

Similar Questions

Discover Related MCQs

Q. A character literal in Java is enclosed within a pair of ___?

Q. Which version of Java started offering unsigned int and unsigned long to represent very long numbers?

Q. Choose a correct statement about Java literal types.

Q. A String literal in Java is surrounded by a pair of _____?

Q. Which among the following is not a primitive data type in Java?

Q. Which version of Java introduced Hexadecimal floating point numbers?

Q. What are the two floating point notations in Java language?

Q. Choose the correct implementation of floating point literals in the exponential form in Java.

Q. Choose the correct usage of boolean literal in the options below.

Q. Choose the wrong Java code statement below.

Q. Choose the wrong representation of a character literal in Octal notation in Java.

Q. A Unicode character literal in Java is surrounded by a pair of ___?

Q. What is the default boolean literal assigned to a boolean variable in Java?

Q. What is the default character literal value assigned to a char variable in Java?

Q. What are the Type Conversions available in Java language?

Q. What is a higher data type in Java language?

Q. What is a Widening Type Conversion in Java?

Q. What is a Narrowing Type Conversion in Java?

Q. What is the result of a Narrowing type conversion?

Q. What is the result of a Widening Type Conversion in Java?