Q: What are the types of Literals available in Java language?
Solution: Literals are Data assigned to Primitive data type variables.
Q: What are the types of Integer Literals in Java?
Solution: JDK 7 introduced binary literals to easily set individual bits of a number.
Q: An Octal number is Java is represented with a leading ____?
Solution: Eg. int a=0765;
Q: Choose correct ranges for Decimal, Octal and Hexadecimal numbers in Java?
Solution: no solution
Q: Choose the correct example of Octal Literal in Java?
Solution: int = 0______11; // 8^1 * 1 + 8^0 * 1 = 9
Q: What is the prefix used to represent Hexadecimal numbers in Java?
Solution: int a=0xFEB5; int b=0X9876__45;
Q: Choose correct examples of Hexadecimal literals in Java?
Solution: no solution
Q: Binary literals in Java are introduced with which version of Java?
Solution: no solution
You Have Score    | /8 |