## 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.

Byte | |

Double | |

Integer | |

Long |

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 ______________.

Hexa Decimal Number System | |

Decimal Number System | |

Octal Number System | |

Binary Number System |

Question 3 |

Hexadecimal Numbers are having base _________.

16 | |

8 | |

10 | |

2 |

Question 4 |

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

Java SE 7 and later | |

Java SE 5 and later | |

Java SE 1 and later | |

Java SE 6 and later |

Question 5 |

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

None of these | |

Octal Numer | |

Hexa Decimal Number | |

Binary Number |

There are 5 questions to complete.