## Java MCQ : Literals in Java (Multiple Choice Questions)

Question 1 |

_________ literal is used to Create a Values of the integral types byte, short, int, and long.

Integer | |

Byte | |

Long | |

Double |

Question 1 Explanation:

Values of the integral types byte, short, int, and long can be created from int literals

Question 2 |

Number System whose digits consists of the numbers 0 through 9 is called as ______________.

Decimal Number System | |

Octal Number System | |

Hexa Decimal Number System | |

Binary Number System |

Question 3 |

Hexadecimal Numbers are having base _________.

2 | |

16 | |

8 | |

10 |

Question 4 |

In java programming, You can create binary literal in ________.

Java SE 7 and later | |

Java SE 6 and later | |

Java SE 1 and later | |

Java SE 5 and later |

Question 5 |

Integer literal containing value "F" comes under __________ system.

None of these | |

Hexa Decimal Number | |

Octal Numer | |

Binary Number |

There are 5 questions to complete.